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:
Michael Fritch 2020-03-04 14:19:35 -07:00
parent 1244c65306
commit f49d7e2c1e
No known key found for this signature in database
GPG Key ID: 75F3EB2E80A03B7F

View File

@ -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