4
from subprocess import check_output
7
configs = json.loads(check_output(["config-get", "--format=json"]))
9
if not configs.get("computer-title"):
10
configs["computer-title"] = os.environ["JUJU_UNIT_NAME"]
11
options = ["--%s=%s" % (key, value) for key, value in configs.items()]
13
args = ["landscape-config", "--silent"]