Skip to content

Instantly share code, notes, and snippets.

View codersquid's full-sized avatar

Sheila Miguez codersquid

View GitHub Profile
#!/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 = {}