mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
proxmox: fix: cannot access local variable 'identifier' where it is not associated with a value (#10155)
* fix: cannot access local variable 'identifier' where it is not associated with a value * Add changelog fragment. --------- Co-authored-by: Louis Jannett <louisjannett@icloud.com>
This commit is contained in:
@@ -890,6 +890,7 @@ class ProxmoxLxcAnsible(ProxmoxAnsible):
|
||||
self.module.exit_json(
|
||||
changed=False, vmid=vmid, msg="VM %s already exists." % identifier
|
||||
)
|
||||
identifier = self.format_vm_identifier(vmid, lxc["name"])
|
||||
self.module.debug(
|
||||
"VM %s already exists, but we don't update and instead forcefully recreate it."
|
||||
% identifier
|
||||
|
||||
Reference in New Issue
Block a user