From 36e7395822c5e0265f2c36fc1c8bd65ea0c87adc Mon Sep 17 00:00:00 2001 From: Vincent Viallet Date: Thu, 12 Dec 2013 12:30:22 +0800 Subject: [PATCH] Minor typos and remove extra dependencies. --- cloud/ec2_key | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cloud/ec2_key b/cloud/ec2_key index 7a4926171f2..dc51c2ab19d 100644 --- a/cloud/ec2_key +++ b/cloud/ec2_key @@ -106,9 +106,6 @@ except ImportError: print "failed=True msg='boto required for this module'" sys.exit(1) -# Required if importing key -import base64 - def main(): module = AnsibleModule( argument_spec=dict( @@ -159,14 +156,14 @@ def main(): try: key.delete() except Exception, e: - module.fail_json(msg="Unable to key pair '%s' - %s" % (key, e)) + module.fail_json(msg="Unable to delete key pair '%s' - %s" % (key, e)) else: key = None changed = True else: '''no match found, no changes required''' - # Ensure requested group is present + # Ensure requested key is present elif state == 'present': if key: '''existing key found''' @@ -175,7 +172,7 @@ def main(): # the key has been created of imported. pass - # if the group doesn't exist, create it now + # if the key doesn't exist, create it now else: '''no match found, create it''' if not module.check_mode: