diff options
author | Kevin Kirsche <Kev.Kirsche+GitHub@gmail.com> | 2016-11-22 10:59:12 -0500 |
---|---|---|
committer | John R Barker <john@johnrbarker.com> | 2016-11-22 15:59:12 +0000 |
commit | f5658f4e5048ae6f2cf1d8eb434be3602fc6bb3a (patch) | |
tree | c09da065da1f3bb55938f5f8febaa1b467f40392 | |
parent | 7434c14c4300cb4511f4fe4374b747ab8148d502 (diff) | |
download | ansible-modules-core-f5658f4e5048ae6f2cf1d8eb434be3602fc6bb3a.tar.gz |
Remove set from junos_facts as it errors out (#5670)
Fix #5636 per @ganeshnalawade
-rw-r--r-- | network/junos/junos_facts.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/network/junos/junos_facts.py b/network/junos/junos_facts.py index 1e6973dd..d321b9f1 100644 --- a/network/junos/junos_facts.py +++ b/network/junos/junos_facts.py @@ -44,12 +44,12 @@ options: - The C(config_format) argument is used to specify the desired format of the configuration file. Devices support three configuration file formats. By default, the configuration - from the device is returned as text. The other options include - set and xml. If the xml option is chosen, the configuration file - is returned as both xml and json. + from the device is returned as text. The other option xml. + If the xml option is chosen, the configuration file is + returned as both xml and json. required: false default: text - choices: ['xml', 'text', 'set'] + choices: ['xml', 'text'] requirements: - junos-eznc notes: @@ -68,10 +68,10 @@ EXAMPLES = """ junos_facts: config: yes -- name: collect default set of facts and configuration in set format +- name: collect default set of facts and configuration in text format junos_facts: config: yes - config_format: set + config_format: text - name: collect default set of facts and configuration in XML and JSON format junos_facts: @@ -95,7 +95,7 @@ def main(): """ spec = dict( config=dict(type='bool'), - config_format=dict(default='text', choices=['xml', 'set', 'text']), + config_format=dict(default='text', choices=['xml', 'text']), transport=dict(default='netconf', choices=['netconf']) ) @@ -116,7 +116,7 @@ def main(): config_format = module.params['config_format'] resp_config = module.config.get_config(config_format=config_format) - if config_format in ['text', 'set']: + if config_format in ['text']: facts['config'] = resp_config elif config_format == "xml": facts['config'] = xml_to_string(resp_config) |