summaryrefslogtreecommitdiffstats
path: root/roles/lib_dyn
diff options
context:
space:
mode:
authorRussell Harrison <rharriso@redhat.com>2016-02-16 14:56:00 -0500
committerRussell Harrison <rharriso@redhat.com>2016-02-16 14:56:00 -0500
commitfb0b890d7f707dc038a3ee1a042a28bd3d644c71 (patch)
tree19d74f02b17c45cc00bf1c8bc36806a22aecd74a /roles/lib_dyn
parent3a47ba3d1359719499f30699fa8543078f87f579 (diff)
downloadopenshift-fb0b890d7f707dc038a3ee1a042a28bd3d644c71.tar.gz
openshift-fb0b890d7f707dc038a3ee1a042a28bd3d644c71.tar.bz2
openshift-fb0b890d7f707dc038a3ee1a042a28bd3d644c71.tar.xz
openshift-fb0b890d7f707dc038a3ee1a042a28bd3d644c71.zip
Add default to state param
Diffstat (limited to 'roles/lib_dyn')
-rw-r--r--roles/lib_dyn/library/dyn_record.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_dyn/library/dyn_record.py b/roles/lib_dyn/library/dyn_record.py
index ab3f5bb40..609fa8679 100644
--- a/roles/lib_dyn/library/dyn_record.py
+++ b/roles/lib_dyn/library/dyn_record.py
@@ -178,7 +178,7 @@ def main():
'''Ansible module for managing Dyn DNS records.'''
module = AnsibleModule(
argument_spec=dict(
- state=dict(required=True, choices=['present', 'absent', 'list']),
+ state=dict(required=True, default='present', choices=['present', 'absent', 'list']),
customer_name=dict(default=os.environ.get('DYNECT_CUSTOMER_NAME', None), type='str'),
user_name=dict(default=os.environ.get('DYNECT_USER_NAME', None), type='str', no_log=True),
user_password=dict(default=os.environ.get('DYNECT_PASSWORD', None), type='str', no_log=True),