Skip to content

Commit

Permalink
Return result as a list for consistency with the other vPoller methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Apr 4, 2014
1 parent 536c1eb commit e8fd333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vpoller/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ def vm_host_get(self, msg):

r = {
'success': data['success'],
'msg': data['msg'],
'msg': [ data['msg'] ],
'result': result,
}

Expand Down Expand Up @@ -1231,7 +1231,7 @@ def vm_disk_get(self, msg):
r = {
'success': 0,
'msg': 'Successfully retrieved properties',
'result': result,
'result': [ result ],
}

logging.debug('[%s] Returning result from operation: %s', self.host, r)
Expand Down

0 comments on commit e8fd333

Please sign in to comment.