Skip to content

Commit

Permalink
Merge pull request #865 from nuagenetworks/fix_vsc_destroy
Browse files Browse the repository at this point in the history
use correct VM name variable (master)
  • Loading branch information
mpiecuch-nuage authored Oct 11, 2018
2 parents 4ca2d73 + 08ee80b commit 3cd2cc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/vsc-destroy/tasks/vcenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@

- name: Set VM UUID
set_fact:
uuid: "{{ vm_list.virtual_machines[vm_name]['uuid'] }}"
when: vm_name in vm_list.virtual_machines
uuid: "{{ vm_list.virtual_machines[vmname]['uuid'] }}"
when: vmname in vm_list.virtual_machines

- debug: var=uuid

- name: Turn off autostart
connection: local
vmware_autostart:
name: "{{ vm_name }}"
name: "{{ vmname }}"
uuid: "{{ uuid }}"
hostname: "{{ target_server }}"
username: "{{ vcenter.username }}"
Expand Down

0 comments on commit 3cd2cc4

Please sign in to comment.