get_parser() should return a parser

This is also breaking other cliff commands (e.g. complete) that rely on
the method returning a parser as expected rather than None.

Change-Id: If145c18e1664c16d0eba49a9ac334b1e97abdb5a
This commit is contained in:
Julie Pichon 2019-02-05 11:08:12 +00:00
parent 52c2cf14c2
commit db435422f9

View File

@ -54,6 +54,8 @@ class GenerateAnsibleConfig(command.Command):
"ansible.log files."),
default=constants.UNDERCLOUD_OUTPUT_DIR)
return parser
def take_action(self, parsed_args):
self.log.debug("take_action(%s)" % parsed_args)
if utils.get_deployment_user() != parsed_args.deployment_user: