From 7092021d81c41626f51b765ea8fdc42e376ad905 Mon Sep 17 00:00:00 2001 From: Alex Lo Date: Mon, 13 Jul 2015 23:51:23 -0400 Subject: [PATCH] simplify variable names --- contrib/inventory/ec2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/inventory/ec2.py b/contrib/inventory/ec2.py index f0b01ef194c..be25a5b6943 100755 --- a/contrib/inventory/ec2.py +++ b/contrib/inventory/ec2.py @@ -514,11 +514,11 @@ class Ec2Inventory(object): 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''' - if err_operation_context: + if err_operation: 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.exit(1)