mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07: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:
parent
5b4f3b1eda
commit
6be2f0bded
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue