diff options
author | bdowling <bdowling@users.noreply.github.com> | 2018-01-03 09:47:12 -0500 |
---|---|---|
committer | Nathaniel Case <this.is@nathanielca.se> | 2018-01-03 09:47:12 -0500 |
commit | 552d1df901d6196276a21522e32e74c591f83b4d (patch) | |
tree | 9bfd015c958af3412f53e151945c06bdb21f2733 /lib/ansible/modules/network/dellos9/dellos9_config.py | |
parent | af236f2531f25d36115b5abd9bd128cdf87f0db2 (diff) | |
download | ansible-552d1df901d6196276a21522e32e74c591f83b4d.tar.gz |
Adds parents to mutually_exclusive with src for *_config modules (#33957)
* mutually_exclusive add - ios_config parents works with lines by not src
* mutually_execlusive parents,src added to all other net modules
* tests for mutually_exclusive parents,src and whitespce removal
Diffstat (limited to 'lib/ansible/modules/network/dellos9/dellos9_config.py')
-rw-r--r-- | lib/ansible/modules/network/dellos9/dellos9_config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ansible/modules/network/dellos9/dellos9_config.py b/lib/ansible/modules/network/dellos9/dellos9_config.py index f7161ce3b7..439c98d70c 100644 --- a/lib/ansible/modules/network/dellos9/dellos9_config.py +++ b/lib/ansible/modules/network/dellos9/dellos9_config.py @@ -48,7 +48,7 @@ options: or configuration template to load. The path to the source file can either be the full path on the Ansible control host or a relative path from the playbook or role root directory. This argument is mutually - exclusive with I(lines). + exclusive with I(lines), I(parents). required: false default: null before: @@ -234,7 +234,8 @@ def main(): argument_spec.update(dellos9_argument_spec) - mutually_exclusive = [('lines', 'src')] + mutually_exclusive = [('lines', 'src'), + ('parents', 'src')] module = AnsibleModule(argument_spec=argument_spec, mutually_exclusive=mutually_exclusive, |