diff options
author | Asteroide <thomas.duval@orange.com> | 2018-10-05 15:01:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-05 15:01:17 +0000 |
commit | cbea4e360e9bfaa9698cf7c61c83c96a1ba89b8c (patch) | |
tree | a8bf6a7bfb06605ed5bfab77570afbe1e46cff4b /python_moonclient/python_moonclient/cli/export.py | |
parent | a3f68df52836676b23ac0f5e3d8c40c957ee80a7 (diff) | |
parent | 2e35a7e46f0929438c1c206e3116caa829f07dc6 (diff) |
Merge "Update code to 4.6 official version"
Diffstat (limited to 'python_moonclient/python_moonclient/cli/export.py')
-rw-r--r-- | python_moonclient/python_moonclient/cli/export.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python_moonclient/python_moonclient/cli/export.py b/python_moonclient/python_moonclient/cli/export.py index a16928de..4ea5cf4f 100644 --- a/python_moonclient/python_moonclient/cli/export.py +++ b/python_moonclient/python_moonclient/cli/export.py @@ -8,6 +8,7 @@ from cliff.command import Command class Export(Command): """dump the complete moon database into a json file""" + def get_parser(self, prog_name): parser = super().get_parser(prog_name) Parser.add_filename_argument(parser) @@ -27,6 +28,5 @@ class Export(Command): json_file = open(parsed_args.filename, "w") json.dump(res["content"], json_file) return "Export ok!" - else: - return "Unexpected results : the returned json does not have the correct syntax" + return "Unexpected results : the returned json does not have the correct syntax" |