mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
cephadm: allow prepare-host to start an enabled service
the service might be enabled, but not running Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
parent
1244c65306
commit
f49d7e2c1e
@ -1145,7 +1145,7 @@ def check_units(units, enabler=None):
|
||||
logger.info('Unit %s is enabled and running' % u)
|
||||
return True
|
||||
if enabler is not None:
|
||||
if not enabled and installed:
|
||||
if installed:
|
||||
logger.info('Enabling unit %s' % u)
|
||||
enabler.enable_service(u)
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user