Fixup juju_log signature, use check_output not check_call when getting IP addresses

This commit is contained in:
James Page 2012-10-04 10:32:03 +01:00
parent 3d5506ce5a
commit 6198863707
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ def expose(port, protocol='TCP'):
subprocess.check_call(cmd)
def juju_log(message, severity='INFO'):
def juju_log(severity, message):
cmd = [
'juju-log',
'--log-level', severity,
@ -148,4 +148,4 @@ def get_host_ip(hostname=unit_get('private-address')):
'+short',
hostname
]
return subprocess.check_call(cmd).strip()
return subprocess.check_output(cmd).strip()

View File

@ -1 +1 @@
52
54