This doesn't normally happen, but did before the daemon inventory breakage
(see previous patches) was fixed.
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit
bae406f74607b16c0da1382537d9bab49d45061e)
deps = sorted([d.name() for d in daemons if d.daemon_type == 'haproxy'])
host = daemon_spec.host
- hosts = sorted(list(set([str(d.hostname) for d in daemons])))
+ hosts = sorted(list(set([host] + [str(d.hostname) for d in daemons])))
# interface
bare_ip = str(spec.virtual_ip).split('/')[0]