Fix valid pylint warning about "Dangerous default value [] as argument".
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
return valid_dict
-def send_command(cluster, target=('mon', ''), cmd=[], inbuf='', timeout=0,
+def send_command(cluster, target=('mon', ''), cmd=None, inbuf='', timeout=0,
verbose=False):
"""
Send a command to a daemon using librados's
If target is osd.N, send command to that osd (except for pgid cmds)
"""
+ cmd = cmd or []
try:
if target[0] == 'osd':
osdid = target[1]