summaryrefslogtreecommitdiffstats
path: root/roles/lib_dyn
diff options
context:
space:
mode:
authorRussell Harrison <rharriso@redhat.com>2016-02-17 11:31:39 -0500
committerRussell Harrison <rharriso@redhat.com>2016-02-17 11:31:39 -0500
commit5accd120ef5babf95c8e4775dbe8bcfa4345590e (patch)
treeb41e1413cc65950417cbd1c30c84e9b3d6d48c00 /roles/lib_dyn
parentfb0b890d7f707dc038a3ee1a042a28bd3d644c71 (diff)
downloadopenshift-5accd120ef5babf95c8e4775dbe8bcfa4345590e.tar.gz
openshift-5accd120ef5babf95c8e4775dbe8bcfa4345590e.tar.bz2
openshift-5accd120ef5babf95c8e4775dbe8bcfa4345590e.tar.xz
openshift-5accd120ef5babf95c8e4775dbe8bcfa4345590e.zip
Fix requiring state and providing a default
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 609fa8679..7b80064f4 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, default='present', choices=['present', 'absent', 'list']),
+ state=dict(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),