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.
pull/17837/merge
Peter Sprygada 8 years ago committed by GitHub
parent 5b4f3b1eda
commit 6be2f0bded

@ -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…
Cancel
Save