Skip to content

Commit

Permalink
ss
Browse files Browse the repository at this point in the history
  • Loading branch information
justinc1 committed Sep 28, 2023
1 parent 50a1155 commit 75b347e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/module_utils/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,12 +596,12 @@ def post_vm_payload(self, rest_client, ansible_dict):
dom["cloudInitData"] = cloud_init_payload
options = dict(attachGuestToolsISO=payload["attachGuestToolsISO"])
if hcversion.verify(">=9.3.0"):
machine_type_keyword = (
VmMachineType.from_ansible_to_hypercore_machine_type_keyword(
self.machine_type
if self.machine_type:
machine_type_keyword = (
VmMachineType.from_ansible_to_hypercore_machine_type_keyword(
self.machine_type
)
)
)
if machine_type_keyword:
options.update(dict(machineTypeKeyword=machine_type_keyword))
return dict(dom=dom, options=options)

Expand Down

0 comments on commit 75b347e

Please sign in to comment.