Skip to content

Commit

Permalink
Added additional parameter get_vm_runtime_host
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijeet Kasurde <[email protected]>
  • Loading branch information
Akasurde committed Apr 6, 2018
1 parent 78d2a86 commit 923946e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions get_vm_runtime_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ def get_obj(content, vimtype, name=None):


vm = get_obj(content, [vim.VirtualMachine], vm_name)
print(vm.summary.runtime.host)

host = vm.summary.runtime.host
print(host)
print(host.summary.config.name)

0 comments on commit 923946e

Please sign in to comment.