From 930384a48fd2124981d97304a8bc6c4fd875d7b7 Mon Sep 17 00:00:00 2001 From: miaoyuliang Date: Tue, 19 Jun 2018 15:45:56 -0400 Subject: 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 --- designateclient/cli/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/designateclient/cli/base.py b/designateclient/cli/base.py index 6cfb4bc..aa56d40 100644 --- a/designateclient/cli/base.py +++ b/designateclient/cli/base.py @@ -121,17 +121,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): -- cgit v1.2.1