Remove more dead code
This commit is contained in:
parent
f11e5f05a8
commit
78eedf0d2e
|
@ -27,7 +27,6 @@ import time
|
||||||
import math
|
import math
|
||||||
|
|
||||||
import daemon_lib.vm as vm
|
import daemon_lib.vm as vm
|
||||||
import daemon_lib.ansiprint as ansiprint
|
|
||||||
import daemon_lib.zkhandler as zkhandler
|
import daemon_lib.zkhandler as zkhandler
|
||||||
import daemon_lib.common as common
|
import daemon_lib.common as common
|
||||||
|
|
||||||
|
@ -205,26 +204,6 @@ def getOSDInformation(zk_conn, osd_id):
|
||||||
return osd_information
|
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
|
# OSD addition and removal uses the /cmd/ceph pipe
|
||||||
# These actions must occur on the specific node they reference
|
# These actions must occur on the specific node they reference
|
||||||
def add_osd(zk_conn, node, device, weight):
|
def add_osd(zk_conn, node, device, weight):
|
||||||
|
|
Loading…
Reference in New Issue