mirror of
https://github.com/ceph/ceph
synced 2025-01-10 21:20:46 +00:00
pybing/mgr/prometheus: return default port if config-key get returns empty
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
This commit is contained in:
parent
9360f76410
commit
c7456a4ecf
@ -593,6 +593,7 @@ class Module(MgrModule):
|
||||
r, outb, outs = result.wait()
|
||||
if r != 0:
|
||||
global_instance().log.error("Failed to retrieve port for mgr {}: {}".format(id_, outs))
|
||||
targets.append('{}:{}'.format(hostname, DEFAULT_PORT))
|
||||
else:
|
||||
port = json.loads(outb)
|
||||
targets.append('{}:{}'.format(hostname, port))
|
||||
|
Loading…
Reference in New Issue
Block a user