1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

pep8 whitespace

This commit is contained in:
Charles Paul 2015-12-10 15:42:49 -05:00 committed by Matt Clay
parent a1efe9486a
commit caea50ba4d

View file

@ -135,9 +135,9 @@ def find_vm(content, vm_id, vm_id_type="dns_name", datacenter=None):
elif vm_id_type == 'uuid': elif vm_id_type == 'uuid':
vm = si.FindByUuid(datacenter=datacenter, uuid=vm_id, vmSearch=True) vm = si.FindByUuid(datacenter=datacenter, uuid=vm_id, vmSearch=True)
elif vm_id_type == 'vm_name': elif vm_id_type == 'vm_name':
for machine in get_all_objs(content, [vim.VirtualMachine]): for machine in get_all_objs(content, [vim.VirtualMachine]):
if machine.name == vm_id: if machine.name == vm_id:
vm = machine vm = machine
return vm return vm