mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
simplify variable names
This commit is contained in:
parent
17b94cf139
commit
7092021d81
1 changed files with 3 additions and 3 deletions
|
@ -514,11 +514,11 @@ class Ec2Inventory(object):
|
||||||
|
|
||||||
return '\n'.join(errors)
|
return '\n'.join(errors)
|
||||||
|
|
||||||
def fail_with_error(self, err_msg, err_operation_context=None):
|
def fail_with_error(self, err_msg, err_operation=None):
|
||||||
'''log an error to std err for ansible-playbook to consume and exit'''
|
'''log an error to std err for ansible-playbook to consume and exit'''
|
||||||
if err_operation_context:
|
if err_operation:
|
||||||
err_msg = 'ERROR: "{err_msg}", while: {err_operation}'.format(
|
err_msg = 'ERROR: "{err_msg}", while: {err_operation}'.format(
|
||||||
err_msg=err_msg, err_operation=err_operation_context)
|
err_msg=err_msg, err_operation=err_operation)
|
||||||
sys.stderr.write(err_msg)
|
sys.stderr.write(err_msg)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue