This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# Find and restart lost Juju agents in a Juju2 environment. | |
import subprocess | |
import json | |
juju_output = subprocess.check_output(["juju","status","--format=json"]) | |
the_dict = json.loads(juju_output) | |
to_fix = {} |
OlderNewer