Fixup juju_log signature, use check_output not check_call when getting IP addresses
This commit is contained in:
parent
3d5506ce5a
commit
6198863707
|
@ -75,7 +75,7 @@ def expose(port, protocol='TCP'):
|
||||||
subprocess.check_call(cmd)
|
subprocess.check_call(cmd)
|
||||||
|
|
||||||
|
|
||||||
def juju_log(message, severity='INFO'):
|
def juju_log(severity, message):
|
||||||
cmd = [
|
cmd = [
|
||||||
'juju-log',
|
'juju-log',
|
||||||
'--log-level', severity,
|
'--log-level', severity,
|
||||||
|
@ -148,4 +148,4 @@ def get_host_ip(hostname=unit_get('private-address')):
|
||||||
'+short',
|
'+short',
|
||||||
hostname
|
hostname
|
||||||
]
|
]
|
||||||
return subprocess.check_call(cmd).strip()
|
return subprocess.check_output(cmd).strip()
|
||||||
|
|
Loading…
Reference in New Issue