Merge "server-get/update show wrong values about 'id' and 'update_at'"
This commit is contained in:
@@ -125,17 +125,17 @@ class ListCommand(Command, command.Lister):
|
|||||||
|
|
||||||
class GetCommand(Command, command.ShowOne):
|
class GetCommand(Command, command.ShowOne):
|
||||||
def post_execute(self, results):
|
def post_execute(self, results):
|
||||||
return list(six.iterkeys(results)), list(six.itervalues(results))
|
return results.keys(), results.values()
|
||||||
|
|
||||||
|
|
||||||
class CreateCommand(Command, command.ShowOne):
|
class CreateCommand(Command, command.ShowOne):
|
||||||
def post_execute(self, results):
|
def post_execute(self, results):
|
||||||
return list(six.iterkeys(results)), list(six.itervalues(results))
|
return results.keys(), results.values()
|
||||||
|
|
||||||
|
|
||||||
class UpdateCommand(Command, command.ShowOne):
|
class UpdateCommand(Command, command.ShowOne):
|
||||||
def post_execute(self, results):
|
def post_execute(self, results):
|
||||||
return list(six.iterkeys(results)), list(six.itervalues(results))
|
return results.keys(), results.values()
|
||||||
|
|
||||||
|
|
||||||
class DeleteCommand(Command, command.ShowOne):
|
class DeleteCommand(Command, command.ShowOne):
|
||||||
|
|||||||
Reference in New Issue
Block a user