Skip to content

Commit

Permalink
The 'vm.process.get' method data in the same format as other methods do
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Oct 29, 2014
1 parent 19c6f22 commit 7375036
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/vpoller/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1960,14 +1960,12 @@ def vm_process_get(self, msg):
}

# Properties to be collected for the guest processes
properties = ['name']
properties = ['cmdLine']
if 'properties' in msg and msg['properties']:
properties.extend(msg['properties'])

# Get the requested process properties
result = {}
result['name'] = vm_name
result['process'] = [{prop: getattr(process, prop, '(null)') for prop in properties} for process in vm_processes]
result = [{prop: getattr(process, prop, '(null)') for prop in properties} for process in vm_processes]

r = {
'success': 0,
Expand Down

0 comments on commit 7375036

Please sign in to comment.