mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fix junos integration zuul CI failures (#57309)
This commit is contained in:
committed by
Daniel Mellado Area
parent
51229eb99c
commit
a867ced4de
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user