We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloning fails with cryptic arrors. Actually at a lof of places, some due to proxmoxer but some not. This is one of such places.
I am not sure what the original idea was, but this lacks error checking whatever it was:
--- /usr/lib/python3/dist-packages/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox.py~ 2022-10-15 16:33:33.000000000 +0200 +++ /usr/lib/python3/dist-packages/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox.py 2022-10-15 16:37:44.390779428 +0200 @@ -412,7 +412,9 @@ """Check if the specified container is a template.""" proxmox_node = self.proxmox_api.nodes(node) config = getattr(proxmox_node, VZ_TYPE)(vmid).config.get() + if 'template' in config: + return config['template'] + return False - return config['template'] def create_instance(self, vmid, node, disk, storage, cpus, memory, swap, timeout, clone, **kwargs):
Chokes when config doesn't contain "template". I left to the reader to determine when this happens.
Bug Report
/usr/lib/python3/dist-packages/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox.py
ansible [core 2.13.4]
community.general 5.6.0
No response
configure/clone various PVE versions, observe some of the fail.
Haphazard results and lot of guesswork at configs.
The text was updated successfully, but these errors were encountered:
Files identified in the description:
plugins/modules/cloud/misc/proxmox.py
If these files are incorrect, please update the component name section of the description or use the !component bot command.
component name
!component
click here for bot help
Sorry, something went wrong.
cc @Ajpantuso @Thulium-Drake @UnderGreen @joshainglis @karmab @tleguern click here for bot help
plugins/modules/proxmox.py
Successfully merging a pull request may close this issue.
Summary
Cloning fails with cryptic arrors. Actually at a lof of places, some due to proxmoxer but some not. This is one of such places.
I am not sure what the original idea was, but this lacks error checking whatever it was:
Chokes when config doesn't contain "template". I left to the reader to determine when this happens.
Issue Type
Bug Report
Component Name
/usr/lib/python3/dist-packages/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox.py
Ansible Version
ansible [core 2.13.4]
Community.general Version
community.general 5.6.0
Configuration
No response
OS / Environment
No response
Steps to Reproduce
configure/clone various PVE versions, observe some of the fail.
Expected Results
Actual Results
Haphazard results and lot of guesswork at configs.
Code of Conduct
The text was updated successfully, but these errors were encountered: