diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2019-11-29 14:49:50 +0800 |
---|---|---|
committer | Lianhao Lu <lianhao.lu@intel.com> | 2019-11-29 14:50:21 +0800 |
commit | fb75c2fc16491340e32cebf36a361f3e36b2b901 (patch) | |
tree | c918b145bc613b6809183f28e8a9867034781435 /vnfsdk_pkgtools/cli | |
parent | 8767846c931ee9cef818ced06f790dabeae535ca (diff) |
Fix pep8 error and warnings
Change-Id: Ic32eefcfd4be4d57c9cf30eff0b3fa1aa730d2c0
Issue-ID: VNFSDK-532
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'vnfsdk_pkgtools/cli')
-rw-r--r-- | vnfsdk_pkgtools/cli/__main__.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/vnfsdk_pkgtools/cli/__main__.py b/vnfsdk_pkgtools/cli/__main__.py index c5653d7..d51c029 100644 --- a/vnfsdk_pkgtools/cli/__main__.py +++ b/vnfsdk_pkgtools/cli/__main__.py @@ -17,7 +17,6 @@ import sys import logging import argparse -import os import shutil import tempfile @@ -32,15 +31,17 @@ from vnfsdk_pkgtools import vnfreq def csar_create_func(namespace): csar.write(namespace.source, - namespace.entry, - namespace.destination, - args=namespace) + namespace.entry, + namespace.destination, + args=namespace) + def csar_open_func(namespace): csar.read(namespace.source, namespace.destination, namespace.no_verify_cert) + def csar_validate_func(namespace): workdir = tempfile.mkdtemp() try: @@ -68,10 +69,10 @@ def parse_args(args_list): """ parser = argparse.ArgumentParser(description='VNF SDK CSAR manipulation tool') parser.add_argument('-v', '--verbose', - dest='verbosity', - action='count', - default=0, - help='Set verbosity level (can be passed multiple times)') + dest='verbosity', + action='count', + default=0, + help='Set verbosity level (can be passed multiple times)') subparsers = parser.add_subparsers(help='csar-create') csar_create = subparsers.add_parser('csar-create') @@ -116,7 +117,6 @@ def parse_args(args_list): action='store_true', help='Generate SOL004 v2.4.1 csar for backward compatilibity') - csar_open = subparsers.add_parser('csar-open') csar_open.set_defaults(func=csar_open_func) csar_open.add_argument( @@ -131,7 +131,6 @@ def parse_args(args_list): action='store_true', help="Do NOT verify the signer's certificate") - csar_validate = subparsers.add_parser('csar-validate') csar_validate.set_defaults(func=csar_validate_func) csar_validate.add_argument( |