diff options
author | Russell Harrison <rharrison@fedoraproject.org> | 2016-02-17 11:35:25 -0500 |
---|---|---|
committer | Russell Harrison <rharrison@fedoraproject.org> | 2016-02-17 11:35:25 -0500 |
commit | 630bfbd5a1b7d8045fdaf1082d82eaa5b95bd316 (patch) | |
tree | 49ad24de8fc74774d23e64c4930e5b961cd1d180 /roles/lib_dyn | |
parent | 365cbaeac0f02d7050822672201db65b00f52fdd (diff) | |
parent | 5accd120ef5babf95c8e4775dbe8bcfa4345590e (diff) | |
download | openshift-630bfbd5a1b7d8045fdaf1082d82eaa5b95bd316.tar.gz openshift-630bfbd5a1b7d8045fdaf1082d82eaa5b95bd316.tar.bz2 openshift-630bfbd5a1b7d8045fdaf1082d82eaa5b95bd316.tar.xz openshift-630bfbd5a1b7d8045fdaf1082d82eaa5b95bd316.zip |
Merge pull request #1427 from rharrison10/rharriso/dyn
Fix requiring state and providing a default
Diffstat (limited to 'roles/lib_dyn')
-rw-r--r-- | roles/lib_dyn/library/dyn_record.py | 2 |
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), |