Skip to content

Commit

Permalink
fix PEP8 E501: line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
b- committed Sep 15, 2023
1 parent 86d32ef commit 24a1645
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/modules/proxmox.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,8 @@ def main():
module.fail_json(vmid=vmid, taskid=taskid, msg="ostemplate '%s' not exists on node %s and storage %s"
% (module.params['ostemplate'], node, template_store))
except Exception as e:
module.fail_json(vmid=vmid, taskid=taskid, msg="Pre-creation checks of {VZ_TYPE} VM {vmid} failed with exception: {e}".format(VZ_TYPE=VZ_TYPE, vmid=vmid, e=e))
module.fail_json(vmid=vmid, taskid=taskid,
msg="Pre-creation checks of {VZ_TYPE} VM {vmid} failed with exception: {e}".format(VZ_TYPE=VZ_TYPE, vmid=vmid, e=e))

try:
proxmox.create_instance(vmid, node, disk, storage, cpus, memory, swap, timeout, clone,
Expand Down Expand Up @@ -751,7 +752,8 @@ def main():
if not proxmox.get_vm(clone, ignore_missing=True):
module.exit_json(changed=False, vmid=vmid, taskid=taskid, msg="Container to be cloned does not exist")
except Exception as e:
module.fail_json(vmid=vmid, taskid=taskid, msg="Pre-clone checks of {VZ_TYPE} VM {vmid} failed with exception: {e}".format(VZ_TYPE=VZ_TYPE, vmid=vmid, e=e))
module.fail_json(vmid=vmid, taskid=taskid,
msg="Pre-clone checks of {VZ_TYPE} VM {vmid} failed with exception: {e}".format(VZ_TYPE=VZ_TYPE, vmid=vmid, e=e))

try:
proxmox.create_instance(vmid, node, disk, storage, cpus, memory, swap, timeout, clone)
Expand Down

0 comments on commit 24a1645

Please sign in to comment.