Format based on updated Black
This commit is contained in:
@ -35,6 +35,7 @@ import daemon_lib.common as common
|
||||
# Supplemental functions
|
||||
#
|
||||
|
||||
|
||||
# Verify OSD is valid in cluster
|
||||
def verifyOSD(zkhandler, osd_id):
|
||||
return zkhandler.exists(("osd", osd_id))
|
||||
|
@ -37,6 +37,7 @@ from functools import wraps
|
||||
# Performance Profiler decorator
|
||||
###############################################################################
|
||||
|
||||
|
||||
# Get performance statistics on a function or class
|
||||
class Profiler(object):
|
||||
def __init__(self, config):
|
||||
@ -104,6 +105,7 @@ class Profiler(object):
|
||||
# Supplemental functions
|
||||
###############################################################################
|
||||
|
||||
|
||||
#
|
||||
# Run a local OS daemon in the background
|
||||
#
|
||||
|
@ -112,7 +112,6 @@ class Logger(object):
|
||||
|
||||
# Output function
|
||||
def out(self, message, state=None, prefix=""):
|
||||
|
||||
# Get the date
|
||||
if self.config["log_dates"]:
|
||||
date = "{} ".format(datetime.now().strftime("%Y/%m/%d %H:%M:%S.%f"))
|
||||
|
Reference in New Issue
Block a user