From 87c6ed14e7e0b528a1fe107e2e531908cdea0f47 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 9 Jan 2018 12:21:35 -0600 Subject: [PATCH] ceph-volume: adds success message to ceph-volume simple activate This used to only show the message if systemd was not being used, now it will show this always if the command is successful. Signed-off-by: Andrew Schoen --- .../ceph_volume/devices/simple/activate.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ceph-volume/ceph_volume/devices/simple/activate.py b/src/ceph-volume/ceph_volume/devices/simple/activate.py index ac1bfff74057d..0e22c040d277b 100644 --- a/src/ceph-volume/ceph_volume/devices/simple/activate.py +++ b/src/ceph-volume/ceph_volume/devices/simple/activate.py @@ -77,12 +77,11 @@ class Activate(object): # start the OSD systemctl.start_osd(osd_id) - if not self.systemd: - terminal.success('Successfully activated OSD %s with FSID %s' % (osd_id, osd_fsid)) - terminal.warning( - ('All ceph-disk systemd units have been disabled to ' - 'prevent OSDs getting triggered by UDEV events') - ) + terminal.success('Successfully activated OSD %s with FSID %s' % (osd_id, osd_fsid)) + terminal.warning( + ('All ceph-disk systemd units have been disabled to ' + 'prevent OSDs getting triggered by UDEV events') + ) def main(self): sub_command_help = dedent(""" -- 2.39.5