summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiaoyuliang <miaoyuliang@cmss.chinamobile.com>2018-06-19 15:45:56 -0400
committermiaoyuliang <miaoyuliang@cmss.chinamobile.com>2018-06-20 14:26:41 -0400
commit19e43432c3bda75b0f688acca01b984225709cf5 (patch)
tree2685cd8b7d91b87e8a1a4b26bef52c9fcbda7f34
parent99ca354c48ecc878474cb143cff731c439046762 (diff)
downloadpython-designateclient-19e43432c3bda75b0f688acca01b984225709cf5.tar.gz
server-get/update show wrong values about 'id' and 'update_at'
While process 'designate server-get' and 'designate server-update', the 'id' and 'update_at' values are wrong, they should be interchanged. Change-Id: Ibddf9cc9a018774ed229c0dfa81e705cd74704bc Closes-Bug: #1777576
-rw-r--r--designateclient/cli/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/designateclient/cli/base.py b/designateclient/cli/base.py
index cfef83f..af4f2de 100644
--- a/designateclient/cli/base.py
+++ b/designateclient/cli/base.py
@@ -125,17 +125,17 @@ class ListCommand(Command, command.Lister):
class GetCommand(Command, command.ShowOne):
def post_execute(self, results):
- return list(six.iterkeys(results)), list(six.itervalues(results))
+ return results.keys(), results.values()
class CreateCommand(Command, command.ShowOne):
def post_execute(self, results):
- return list(six.iterkeys(results)), list(six.itervalues(results))
+ return results.keys(), results.values()
class UpdateCommand(Command, command.ShowOne):
def post_execute(self, results):
- return list(six.iterkeys(results)), list(six.itervalues(results))
+ return results.keys(), results.values()
class DeleteCommand(Command, command.ShowOne):