summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloud/rackspace/rax.py4
-rw-r--r--cloud/rackspace/rax_cbs.py4
-rw-r--r--cloud/rackspace/rax_cbs_attachments.py4
-rw-r--r--cloud/rackspace/rax_cdb.py4
-rw-r--r--cloud/rackspace/rax_cdb_database.py4
-rw-r--r--cloud/rackspace/rax_cdb_user.py4
-rw-r--r--cloud/rackspace/rax_clb.py4
-rw-r--r--cloud/rackspace/rax_clb_nodes.py4
-rw-r--r--cloud/rackspace/rax_dns.py4
-rw-r--r--cloud/rackspace/rax_dns_record.py4
-rw-r--r--cloud/rackspace/rax_facts.py4
-rw-r--r--cloud/rackspace/rax_files.py4
-rw-r--r--cloud/rackspace/rax_files_objects.py4
-rw-r--r--cloud/rackspace/rax_identity.py4
-rw-r--r--cloud/rackspace/rax_keypair.py4
-rw-r--r--cloud/rackspace/rax_meta.py4
-rw-r--r--cloud/rackspace/rax_network.py4
-rw-r--r--cloud/rackspace/rax_queue.py4
-rw-r--r--cloud/rackspace/rax_scaling_group.py4
-rw-r--r--cloud/rackspace/rax_scaling_policy.py4
20 files changed, 60 insertions, 20 deletions
diff --git a/cloud/rackspace/rax.py b/cloud/rackspace/rax.py
index 9ac0318c..31b34f8c 100644
--- a/cloud/rackspace/rax.py
+++ b/cloud/rackspace/rax.py
@@ -890,4 +890,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
# invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_cbs.py b/cloud/rackspace/rax_cbs.py
index c54ee580..597ef1bf 100644
--- a/cloud/rackspace/rax_cbs.py
+++ b/cloud/rackspace/rax_cbs.py
@@ -233,4 +233,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
# invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_cbs_attachments.py b/cloud/rackspace/rax_cbs_attachments.py
index 3b014d46..54e261be 100644
--- a/cloud/rackspace/rax_cbs_attachments.py
+++ b/cloud/rackspace/rax_cbs_attachments.py
@@ -218,4 +218,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
### invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_cdb.py b/cloud/rackspace/rax_cdb.py
index ec659222..47af20ff 100644
--- a/cloud/rackspace/rax_cdb.py
+++ b/cloud/rackspace/rax_cdb.py
@@ -258,4 +258,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
# invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_cdb_database.py b/cloud/rackspace/rax_cdb_database.py
index 45d0f247..6a5e2e86 100644
--- a/cloud/rackspace/rax_cdb_database.py
+++ b/cloud/rackspace/rax_cdb_database.py
@@ -172,4 +172,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
# invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_cdb_user.py b/cloud/rackspace/rax_cdb_user.py
index ff54365e..6d7ae27e 100644
--- a/cloud/rackspace/rax_cdb_user.py
+++ b/cloud/rackspace/rax_cdb_user.py
@@ -217,4 +217,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
# invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_clb.py b/cloud/rackspace/rax_clb.py
index f02d6488..8eae3a5b 100644
--- a/cloud/rackspace/rax_clb.py
+++ b/cloud/rackspace/rax_clb.py
@@ -305,4 +305,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
### invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_clb_nodes.py b/cloud/rackspace/rax_clb_nodes.py
index 31bba7bf..e638bb0e 100644
--- a/cloud/rackspace/rax_clb_nodes.py
+++ b/cloud/rackspace/rax_clb_nodes.py
@@ -278,4 +278,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
# invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_dns.py b/cloud/rackspace/rax_dns.py
index 6024fea1..fa509802 100644
--- a/cloud/rackspace/rax_dns.py
+++ b/cloud/rackspace/rax_dns.py
@@ -170,4 +170,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
### invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_dns_record.py b/cloud/rackspace/rax_dns_record.py
index c5227174..1d8b8a01 100644
--- a/cloud/rackspace/rax_dns_record.py
+++ b/cloud/rackspace/rax_dns_record.py
@@ -345,4 +345,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
### invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_facts.py b/cloud/rackspace/rax_facts.py
index 8923718e..14e17ef3 100644
--- a/cloud/rackspace/rax_facts.py
+++ b/cloud/rackspace/rax_facts.py
@@ -143,4 +143,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
### invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_files.py b/cloud/rackspace/rax_files.py
index 77ab70d8..3eb9dad0 100644
--- a/cloud/rackspace/rax_files.py
+++ b/cloud/rackspace/rax_files.py
@@ -389,4 +389,6 @@ def main():
from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_files_objects.py b/cloud/rackspace/rax_files_objects.py
index d0175996..fb1638bc 100644
--- a/cloud/rackspace/rax_files_objects.py
+++ b/cloud/rackspace/rax_files_objects.py
@@ -617,4 +617,6 @@ def main():
from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_identity.py b/cloud/rackspace/rax_identity.py
index b4d1cc3f..9473585c 100644
--- a/cloud/rackspace/rax_identity.py
+++ b/cloud/rackspace/rax_identity.py
@@ -106,4 +106,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
# invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_keypair.py b/cloud/rackspace/rax_keypair.py
index 0e9585b2..bbc077a4 100644
--- a/cloud/rackspace/rax_keypair.py
+++ b/cloud/rackspace/rax_keypair.py
@@ -171,4 +171,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
### invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_meta.py b/cloud/rackspace/rax_meta.py
index 724513a3..5a177905 100644
--- a/cloud/rackspace/rax_meta.py
+++ b/cloud/rackspace/rax_meta.py
@@ -175,4 +175,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
### invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_network.py b/cloud/rackspace/rax_network.py
index 59b1cd65..257e0cac 100644
--- a/cloud/rackspace/rax_network.py
+++ b/cloud/rackspace/rax_network.py
@@ -143,4 +143,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
### invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_queue.py b/cloud/rackspace/rax_queue.py
index fc2c1ae8..bfa7626a 100644
--- a/cloud/rackspace/rax_queue.py
+++ b/cloud/rackspace/rax_queue.py
@@ -144,4 +144,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
### invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_scaling_group.py b/cloud/rackspace/rax_scaling_group.py
index 952e215c..74ee298c 100644
--- a/cloud/rackspace/rax_scaling_group.py
+++ b/cloud/rackspace/rax_scaling_group.py
@@ -426,4 +426,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
# invoke the module
-main()
+
+if __name__ == '__main__':
+ main()
diff --git a/cloud/rackspace/rax_scaling_policy.py b/cloud/rackspace/rax_scaling_policy.py
index 33ebc607..8533261c 100644
--- a/cloud/rackspace/rax_scaling_policy.py
+++ b/cloud/rackspace/rax_scaling_policy.py
@@ -280,4 +280,6 @@ from ansible.module_utils.basic import *
from ansible.module_utils.rax import *
# invoke the module
-main()
+
+if __name__ == '__main__':
+ main()