mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +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)
|
||||
|
||||
if config_format == 'text':
|
||||
return str(ele.text).strip()
|
||||
return unicode(ele.text).strip()
|
||||
else:
|
||||
return ele
|
||||
|
||||
|
||||
Reference in New Issue
Block a user