Skip to content

Commit

Permalink
updated to pass sanity; assumed version_added to be next major (7.2.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
J4RF committed May 18, 2023
1 parent cf8db4a commit 375ad52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/modules/proxmox_kvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@
- The TPM version to use.
type: str
choices: ['1.2', '2.0']
version_added: 7.1.1
type: dict
version_added: 7.2.0
update:
description:
- If C(true), the VM will be updated with new value.
Expand Down Expand Up @@ -997,7 +998,7 @@ def create_vm(self, vmid, newid, node, name, memory, cpu, cores, sockets, update

# Flatten tpmstate option to a string so that it's a string which is what Proxmoxer and the API expect
if 'tpmstate' in kwargs:
kwargs['tmpstate'] = '{}:1,version=v{}'.format(kwargs['tmpstate'].pop('storage'), kwargs['tmpstate'].pop('version'))
kwargs['tmpstate'] = '{storage}:1,version=v{version}'.format(storage=kwargs['tmpstate'].pop('storage'), version=kwargs['tmpstate'].pop('version'))

# Convert all dict in kwargs to elements.
# For hostpci[n], ide[n], net[n], numa[n], parallel[n], sata[n], scsi[n], serial[n], virtio[n], ipconfig[n]
Expand Down

0 comments on commit 375ad52

Please sign in to comment.