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
This commit is contained in:
miaoyuliang
2018-06-19 15:45:56 -04:00
parent 99ca354c48
commit 19e43432c3

View File

@@ -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):