mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Fix various junos errors (#23278)
This commit is contained in:
parent
0b8ca98c48
commit
e8538213fa
4 changed files with 7 additions and 7 deletions
|
@ -65,7 +65,7 @@ ansible_facts:
|
|||
"""
|
||||
|
||||
import re
|
||||
from xml.etree.ElementTree import Element, SubElement
|
||||
from xml.etree.ElementTree import Element, SubElement, tostring
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.six import iteritems
|
||||
|
@ -89,7 +89,7 @@ class FactsBase(object):
|
|||
reply = command(self.module, command)
|
||||
output = reply.find('.//output')
|
||||
if not output:
|
||||
module.fail_json(msg='failed to retrieve facts for command %s' % command)
|
||||
self.module.fail_json(msg='failed to retrieve facts for command %s' % command)
|
||||
return str(output.text).strip()
|
||||
|
||||
def rpc(self, rpc):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue