Regression fixes for command execution
Change-Id: I8591a206268b7afcb8f561f2eab4fc21b2172fc1
Related-PROD: PROD-28199
diff --git a/cfg_checker/cli/command.py b/cfg_checker/cli/command.py
index 8e715f2..9ac05f3 100644
--- a/cfg_checker/cli/command.py
+++ b/cfg_checker/cli/command.py
@@ -32,7 +32,10 @@
def execute_command(args, command):
# Validate the commands
- # check command
+ # check commands
+ if not hasattr(args, 'type') or not args.type:
+ logger_cli.info("\n# Please, type a command listed above")
+ return 0
_type = args.type.replace("-", "_") if "-" in args.type else args.type
if command not in commands:
logger_cli.info("\n# Please, type a command listed above")
diff --git a/cfg_checker/cli/reclass.py b/cfg_checker/cli/reclass.py
index 24eb8e2..f479a72 100644
--- a/cfg_checker/cli/reclass.py
+++ b/cfg_checker/cli/reclass.py
@@ -4,7 +4,7 @@
def entrypoint():
cli_command(
'# Mirantis Cloud Reclass comparer"',
- 'packages'
+ 'reclass'
)