summaryrefslogtreecommitdiff
path: root/cloud/amazon/ec2_key.py
diff options
context:
space:
mode:
authorFabio Alessandro Locati <fale@redhat.com>2016-12-05 17:08:15 +0000
committerFabio Alessandro Locati <fale@redhat.com>2016-12-05 17:08:15 +0000
commitb0d98da534dd9a6af516072fdc9cb703a020be02 (patch)
tree8b6dbf394408507a719a6c9051fa3d9ebfbf8235 /cloud/amazon/ec2_key.py
parent60b82f757dade5eefea905f97a4ebdc1d9ef1937 (diff)
downloadansible-modules-core-b0d98da534dd9a6af516072fdc9cb703a020be02.tar.gz
Call main in conditional way - cloud/amazon
Diffstat (limited to 'cloud/amazon/ec2_key.py')
-rw-r--r--cloud/amazon/ec2_key.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloud/amazon/ec2_key.py b/cloud/amazon/ec2_key.py
index d0f361e3..5adb2e95 100644
--- a/cloud/amazon/ec2_key.py
+++ b/cloud/amazon/ec2_key.py
@@ -241,4 +241,5 @@ def main():
from ansible.module_utils.basic import *
from ansible.module_utils.ec2 import *
-main()
+if __name__ == '__main__':
+ main()