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:
Peter Sprygada 2016-09-30 16:31:25 -04:00 committed by GitHub
parent 5b4f3b1eda
commit 6be2f0bded

View file

@ -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