diff --git a/lib/ansible/modules/cloud/rackspace/rax.py b/lib/ansible/modules/cloud/rackspace/rax.py index 9ac0318c10..31b34f8c45 100644 --- a/lib/ansible/modules/cloud/rackspace/rax.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_cbs.py b/lib/ansible/modules/cloud/rackspace/rax_cbs.py index c54ee58088..597ef1bfe7 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_cbs.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_cbs_attachments.py b/lib/ansible/modules/cloud/rackspace/rax_cbs_attachments.py index 3b014d465f..54e261be51 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_cbs_attachments.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_cdb.py b/lib/ansible/modules/cloud/rackspace/rax_cdb.py index ec659222e8..47af20ffc9 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_cdb.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_cdb_database.py b/lib/ansible/modules/cloud/rackspace/rax_cdb_database.py index 45d0f24722..6a5e2e86e4 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_cdb_database.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_cdb_user.py b/lib/ansible/modules/cloud/rackspace/rax_cdb_user.py index ff54365ea1..6d7ae27ec7 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_cdb_user.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_clb.py b/lib/ansible/modules/cloud/rackspace/rax_clb.py index f02d6488db..8eae3a5bba 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_clb.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_clb_nodes.py b/lib/ansible/modules/cloud/rackspace/rax_clb_nodes.py index 31bba7bf52..e638bb0ee8 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_clb_nodes.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_dns.py b/lib/ansible/modules/cloud/rackspace/rax_dns.py index 6024fea127..fa509802b3 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_dns.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_dns_record.py b/lib/ansible/modules/cloud/rackspace/rax_dns_record.py index c5227174ac..1d8b8a01b7 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_dns_record.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_facts.py b/lib/ansible/modules/cloud/rackspace/rax_facts.py index 8923718e5e..14e17ef32d 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_facts.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_files.py b/lib/ansible/modules/cloud/rackspace/rax_files.py index 77ab70d8e8..3eb9dad039 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_files.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_files_objects.py b/lib/ansible/modules/cloud/rackspace/rax_files_objects.py index d0175996b1..fb1638bce0 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_files_objects.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_identity.py b/lib/ansible/modules/cloud/rackspace/rax_identity.py index b4d1cc3f28..9473585c16 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_identity.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_keypair.py b/lib/ansible/modules/cloud/rackspace/rax_keypair.py index 0e9585b24c..bbc077a450 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_keypair.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_meta.py b/lib/ansible/modules/cloud/rackspace/rax_meta.py index 724513a312..5a17790518 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_meta.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_network.py b/lib/ansible/modules/cloud/rackspace/rax_network.py index 59b1cd6554..257e0cac26 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_network.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_queue.py b/lib/ansible/modules/cloud/rackspace/rax_queue.py index fc2c1ae8d5..bfa7626ac7 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_queue.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_scaling_group.py b/lib/ansible/modules/cloud/rackspace/rax_scaling_group.py index 7c851d3d46..e1abeceaad 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_scaling_group.py +++ b/lib/ansible/modules/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/lib/ansible/modules/cloud/rackspace/rax_scaling_policy.py b/lib/ansible/modules/cloud/rackspace/rax_scaling_policy.py index 33ebc60779..8533261c2a 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_scaling_policy.py +++ b/lib/ansible/modules/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()