Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 92b95ca2 authored by SIMONIN Matthieu's avatar SIMONIN Matthieu
Browse files

doc/run_command: align with new result api

parent ffc9486b
No related branches found
No related tags found
No related merge requests found
......@@ -30,11 +30,7 @@ provider = en.Vagrant(conf)
roles, networks = provider.init()
roles = en.sync_info(roles, networks)
result = en.run_command("date", pattern_hosts="control*", roles=roles)
with open("result_ok", "w") as f:
json.dump(result["ok"], f, indent=2)
with open("result_failed", "w") as f:
json.dump(result["failed"], f, indent=2)
print(result)
# shortcut 1 -> use the roles
result = en.run("date", roles)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment