Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1x authored and mattclay committed Dec 8, 2016
1 parent e51f6c1 commit 24e8428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/modules/extras/cloud/vmware/vmware_guest.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ def deploy_template(self, poweron=False, wait_for_ip=False):
for ip_string in self.params['ips']:
ip = IPAddress(self.params['ips'])
for network in self.params['networks']:
if network:
if network:
if ip in IPNetwork(network):
self.params['networks'][network]['ip'] = str(ip)
ipnet = IPNetwork(network)
Expand Down Expand Up @@ -922,7 +922,7 @@ def deploy_template(self, poweron=False, wait_for_ip=False):
annotation_spec = vim.vm.ConfigSpec()
annotation_spec.annotation = str(self.params['annotation'])
task = vm.ReconfigVM_Task(annotation_spec)
self.wait_for_task(task)
self.wait_for_task(task)
if wait_for_ip:
self.set_powerstate(vm, 'poweredon', force=False)
self.wait_for_vm_ip(vm)
Expand Down

0 comments on commit 24e8428

Please sign in to comment.