diff options
-rw-r--r-- | utils/test/testapi/opnfv_testapi/common/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/test/testapi/opnfv_testapi/common/config.py b/utils/test/testapi/opnfv_testapi/common/config.py index ecfffd8dc..03515addd 100644 --- a/utils/test/testapi/opnfv_testapi/common/config.py +++ b/utils/test/testapi/opnfv_testapi/common/config.py @@ -60,7 +60,7 @@ class Config(object): parser.add_argument("-c", "--config-file", dest='config_file', help="Config file location", metavar="FILE") args, _ = parser.parse_known_args(sys.argv) - if hasattr(args, 'config_file'): + if hasattr(args, 'config_file') and args.config_file: self.config_file = args.config_file |