From 78eedf0d2e25440282b768a02457dd60b00744ae Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 7 Nov 2020 15:20:36 -0500 Subject: [PATCH] Remove more dead code --- daemon-common/ceph.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/daemon-common/ceph.py b/daemon-common/ceph.py index aab08d3c..b804ebf5 100644 --- a/daemon-common/ceph.py +++ b/daemon-common/ceph.py @@ -27,7 +27,6 @@ import time import math import daemon_lib.vm as vm -import daemon_lib.ansiprint as ansiprint import daemon_lib.zkhandler as zkhandler import daemon_lib.common as common @@ -205,26 +204,6 @@ def getOSDInformation(zk_conn, osd_id): return osd_information -def getOutputColoursOSD(osd_information): - # Set the UP status - if osd_information['stats']['up'] == 1: - osd_up_flag = 'Yes' - osd_up_colour = ansiprint.green() - else: - osd_up_flag = 'No' - osd_up_colour = ansiprint.red() - - # Set the IN status - if osd_information['stats']['in'] == 1: - osd_in_flag = 'Yes' - osd_in_colour = ansiprint.green() - else: - osd_in_flag = 'No' - osd_in_colour = ansiprint.red() - - return osd_up_flag, osd_up_colour, osd_in_flag, osd_in_colour - - # OSD addition and removal uses the /cmd/ceph pipe # These actions must occur on the specific node they reference def add_osd(zk_conn, node, device, weight):