Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorency committed Jul 18, 2024
1 parent f78599c commit 9fa8b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/folder_template_from_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def __get_source_vm(self):
if len(vms) != 1:
self.module.fail_json("Multiple VMs found during search. Try using the vm_name_match or vm_uuid/vm_moid attributes.")

vm = vm[0]
vm = vms[0]
if vm.runtime.powerState != 'poweredOff':
self.module.fail_json(msg="VM must be in powered off state before creating a template from it.")

Expand Down

0 comments on commit 9fa8b09

Please sign in to comment.