From 1b1e7b1eb81d2f860629f6688fd5cb0f9fd0372b Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Fri, 5 May 2017 13:33:09 -0700 Subject: [PATCH] Removed old -l option for create --- atrcopy/__init__.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/atrcopy/__init__.py b/atrcopy/__init__.py index 535ee42..770dda9 100644 --- a/atrcopy/__init__.py +++ b/atrcopy/__init__.py @@ -282,10 +282,6 @@ def get_template_info(): return os.linesep.join(lines) + os.linesep -def list_templates(): - print get_template_info() - - def get_template_data(template): path = os.path.join(get_template_path(), template) try: @@ -496,10 +492,7 @@ def run(): log.setLevel(logging.INFO) if command == "create": - if options.list or options.template is None: - list_templates() - else: - create_image(options.template, disk_image_name) + create_image(options.template[0], disk_image_name) else: parser = find_diskimage(disk_image_name) if parser and parser.image: