roll up of unicode fixes in junos modules (#5113)
* fixes junos_template (fixes #3962) * fixes junos_config
This commit is contained in:
parent
62bf8d0c78
commit
d58462949f
2 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ def main():
|
|||
"set per junos-pyez documentation")
|
||||
|
||||
results = dict(changed=False)
|
||||
results['_backup'] = str(module.config.get_config()).strip()
|
||||
results['_backup'] = unicode(module.config.get_config()).strip()
|
||||
|
||||
try:
|
||||
diff = module.config.load_config(src, commit=commit, replace=replace,
|
||||
|
|
|
@ -213,7 +213,7 @@ def config_to_commands(config):
|
|||
return commands
|
||||
|
||||
def diff_commands(commands, config):
|
||||
config = [str(c).replace("'", '') for c in config]
|
||||
config = [unicode(c).replace("'", '') for c in config]
|
||||
|
||||
updates = list()
|
||||
visited = set()
|
||||
|
|
Loading…
Reference in a new issue