Port integration tests to network_cli (#33583)

* network_cli needs network_os

* Work around for Python 3.x < 3.6
This commit is contained in:
Nathaniel Case
2017-12-05 12:46:00 -05:00
committed by GitHub
parent 09b3b5305a
commit 8679d2e396
2 changed files with 9 additions and 3 deletions

View File

@@ -818,9 +818,9 @@ class TaskExecutor:
stdin.close()
if p.returncode == 0:
result = json.loads(stdout)
result = json.loads(to_text(stdout))
else:
result = json.loads(stderr)
result = json.loads(to_text(stderr))
if 'messages' in result:
for msg in result.get('messages'):