diff --git a/lib/ansible/module_utils/junos.py b/lib/ansible/module_utils/junos.py index d6643adf693..730839bbd5c 100644 --- a/lib/ansible/module_utils/junos.py +++ b/lib/ansible/module_utils/junos.py @@ -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