mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
fixes unicode conversation from junos get_config() method (#17841)
The junos config should convert the returning configuration to unicode not str. This fixes that issue.
This commit is contained in:
@@ -166,7 +166,7 @@ class Netconf(object):
|
|||||||
ele = self.rpc('get_configuration', output=config_format)
|
ele = self.rpc('get_configuration', output=config_format)
|
||||||
|
|
||||||
if config_format == 'text':
|
if config_format == 'text':
|
||||||
return str(ele.text).strip()
|
return unicode(ele.text).strip()
|
||||||
else:
|
else:
|
||||||
return ele
|
return ele
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user