mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Fix junos integration zuul CI failures (#57309)
This commit is contained in:
parent
51229eb99c
commit
a867ced4de
9 changed files with 318 additions and 234 deletions
|
@ -223,9 +223,9 @@ class NetconfBase(AnsiblePlugin):
|
|||
"""
|
||||
if rpc_command is None:
|
||||
raise ValueError('rpc_command value must be provided')
|
||||
req = fromstring(rpc_command)
|
||||
resp = self.m.dispatch(req, source=source, filter=filter)
|
||||
return resp.data_xml if resp.data_ele else resp.xml
|
||||
|
||||
resp = self.m.dispatch(fromstring(rpc_command), source=source, filter=filter)
|
||||
return resp.data_xml if hasattr(resp, 'data_xml') else resp.xml
|
||||
|
||||
@ensure_connected
|
||||
def lock(self, target="candidate"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue