diff options
Diffstat (limited to 'lib/ansible/modules/cloud/rackspace')
13 files changed, 16 insertions, 9 deletions
diff --git a/lib/ansible/modules/cloud/rackspace/rax_cbs_attachments.py b/lib/ansible/modules/cloud/rackspace/rax_cbs_attachments.py index 9bafd5e591..7cb1abe398 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_cbs_attachments.py +++ b/lib/ansible/modules/cloud/rackspace/rax_cbs_attachments.py @@ -93,7 +93,7 @@ from ansible.module_utils.rax import (NON_CALLABLES, rax_required_together, rax_to_dict, setup_rax_module, - ) + ) def cloud_block_storage_attachments(module, state, volume, server, device, diff --git a/lib/ansible/modules/cloud/rackspace/rax_cdb.py b/lib/ansible/modules/cloud/rackspace/rax_cdb.py index eb03328ffb..ced4369676 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_cdb.py +++ b/lib/ansible/modules/cloud/rackspace/rax_cdb.py @@ -148,7 +148,7 @@ def save_instance(module, name, flavor, volume, cdb_type, cdb_version, wait, module.fail_json(changed=False, action=action, msg='The new volume size must be larger than ' 'the current volume size', - cdb=rax_to_dict(instance)) + cdb=rax_to_dict(instance)) instance.resize_volume(volume) changed = True diff --git a/lib/ansible/modules/cloud/rackspace/rax_clb.py b/lib/ansible/modules/cloud/rackspace/rax_clb.py index 86b750edf7..f00bd5e63e 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_clb.py +++ b/lib/ansible/modules/cloud/rackspace/rax_clb.py @@ -141,7 +141,7 @@ from ansible.module_utils.rax import (CLB_ALGORITHMS, rax_required_together, rax_to_dict, setup_rax_module, - ) + ) def cloud_load_balancer(module, state, name, meta, algorithm, port, protocol, diff --git a/lib/ansible/modules/cloud/rackspace/rax_clb_ssl.py b/lib/ansible/modules/cloud/rackspace/rax_clb_ssl.py index d6f89417c2..6dfee78817 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_clb_ssl.py +++ b/lib/ansible/modules/cloud/rackspace/rax_clb_ssl.py @@ -11,7 +11,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'supported_by': 'community'} -DOCUMENTATION=''' +DOCUMENTATION = ''' module: rax_clb_ssl short_description: Manage SSL termination for a Rackspace Cloud Load Balancer. description: @@ -100,7 +100,8 @@ from ansible.module_utils.rax import (rax_argument_spec, rax_required_together, rax_to_dict, setup_rax_module, - ) + ) + def cloud_load_balancer_ssl(module, loadbalancer, state, enabled, private_key, certificate, intermediate_certificate, secure_port, @@ -222,6 +223,7 @@ def cloud_load_balancer_ssl(module, loadbalancer, state, enabled, private_key, else: module.fail_json(**result) + def main(): argument_spec = rax_argument_spec() argument_spec.update(dict( diff --git a/lib/ansible/modules/cloud/rackspace/rax_dns.py b/lib/ansible/modules/cloud/rackspace/rax_dns.py index 76ce9ec625..1a0aaba6f6 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_dns.py +++ b/lib/ansible/modules/cloud/rackspace/rax_dns.py @@ -72,7 +72,7 @@ from ansible.module_utils.rax import (rax_argument_spec, rax_required_together, rax_to_dict, setup_rax_module, - ) + ) def rax_dns(module, comment, email, name, state, ttl): diff --git a/lib/ansible/modules/cloud/rackspace/rax_dns_record.py b/lib/ansible/modules/cloud/rackspace/rax_dns_record.py index 6c04d68c9d..6ed9b4fdc8 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_dns_record.py +++ b/lib/ansible/modules/cloud/rackspace/rax_dns_record.py @@ -128,7 +128,7 @@ from ansible.module_utils.rax import (rax_argument_spec, rax_required_together, rax_to_dict, setup_rax_module, - ) + ) def rax_dns_record_ptr(module, data=None, comment=None, loadbalancer=None, diff --git a/lib/ansible/modules/cloud/rackspace/rax_facts.py b/lib/ansible/modules/cloud/rackspace/rax_facts.py index 42d8201691..4c40a550a0 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_facts.py +++ b/lib/ansible/modules/cloud/rackspace/rax_facts.py @@ -61,7 +61,7 @@ from ansible.module_utils.rax import (rax_argument_spec, rax_required_together, rax_to_dict, setup_rax_module, - ) + ) def rax_facts(module, address, name, server_id): diff --git a/lib/ansible/modules/cloud/rackspace/rax_keypair.py b/lib/ansible/modules/cloud/rackspace/rax_keypair.py index 57988a75e5..0a6010662c 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_keypair.py +++ b/lib/ansible/modules/cloud/rackspace/rax_keypair.py @@ -91,7 +91,7 @@ from ansible.module_utils.rax import (rax_argument_spec, rax_required_together, rax_to_dict, setup_rax_module, - ) + ) def rax_keypair(module, name, public_key, state): diff --git a/lib/ansible/modules/cloud/rackspace/rax_mon_alarm.py b/lib/ansible/modules/cloud/rackspace/rax_mon_alarm.py index 996f5f849d..04e5db258f 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_mon_alarm.py +++ b/lib/ansible/modules/cloud/rackspace/rax_mon_alarm.py @@ -180,6 +180,7 @@ def alarm(module, state, label, entity_id, check_id, notification_plan_id, crite else: module.exit_json(changed=changed) + def main(): argument_spec = rax_argument_spec() argument_spec.update( diff --git a/lib/ansible/modules/cloud/rackspace/rax_mon_check.py b/lib/ansible/modules/cloud/rackspace/rax_mon_check.py index 48a5156b99..a6e791db96 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_mon_check.py +++ b/lib/ansible/modules/cloud/rackspace/rax_mon_check.py @@ -256,6 +256,7 @@ def cloud_check(module, state, entity_id, label, check_type, else: module.exit_json(changed=changed) + def main(): argument_spec = rax_argument_spec() argument_spec.update( diff --git a/lib/ansible/modules/cloud/rackspace/rax_mon_entity.py b/lib/ansible/modules/cloud/rackspace/rax_mon_entity.py index 0ed3aac18f..21d917c301 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_mon_entity.py +++ b/lib/ansible/modules/cloud/rackspace/rax_mon_entity.py @@ -152,6 +152,7 @@ def cloud_monitoring(module, state, label, agent_id, named_ip_addresses, else: module.exit_json(changed=changed) + def main(): argument_spec = rax_argument_spec() argument_spec.update( diff --git a/lib/ansible/modules/cloud/rackspace/rax_mon_notification.py b/lib/ansible/modules/cloud/rackspace/rax_mon_notification.py index d4da95b756..6aee351b96 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_mon_notification.py +++ b/lib/ansible/modules/cloud/rackspace/rax_mon_notification.py @@ -138,6 +138,7 @@ def notification(module, state, label, notification_type, details): else: module.exit_json(changed=changed) + def main(): argument_spec = rax_argument_spec() argument_spec.update( diff --git a/lib/ansible/modules/cloud/rackspace/rax_mon_notification_plan.py b/lib/ansible/modules/cloud/rackspace/rax_mon_notification_plan.py index fb5822aa6e..486599bcbd 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_mon_notification_plan.py +++ b/lib/ansible/modules/cloud/rackspace/rax_mon_notification_plan.py @@ -141,6 +141,7 @@ def notification_plan(module, state, label, critical_state, warning_state, ok_st else: module.exit_json(changed=changed) + def main(): argument_spec = rax_argument_spec() argument_spec.update( |