mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
[modules] Fix bad usages of traceback.format_exc()
; doesn't take an error parameter (#21678)
This commit is contained in:
parent
d9e4248c35
commit
26b10eb160
11 changed files with 50 additions and 50 deletions
|
@ -1407,7 +1407,7 @@ def startstop_instances(module, ec2, instance_ids, state, instance_tags):
|
|||
changed = True
|
||||
else:
|
||||
module.fail_json(msg='Failed to handle source_dest_check state for instance {0}, error: {1}'.format(inst.id, exc),
|
||||
exception=traceback.format_exc(exc))
|
||||
exception=traceback.format_exc())
|
||||
|
||||
# Check "termination_protection" attribute
|
||||
if (inst.get_attribute('disableApiTermination')['disableApiTermination'] != termination_protection
|
||||
|
@ -1514,7 +1514,7 @@ def restart_instances(module, ec2, instance_ids, state, instance_tags):
|
|||
changed = True
|
||||
else:
|
||||
module.fail_json(msg='Failed to handle source_dest_check state for instance {0}, error: {1}'.format(inst.id, exc),
|
||||
exception=traceback.format_exc(exc))
|
||||
exception=traceback.format_exc())
|
||||
|
||||
# Check "termination_protection" attribute
|
||||
if (inst.get_attribute('disableApiTermination')['disableApiTermination'] != termination_protection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue