Fix bug with space-containing detect strings

This commit is contained in:
Joshua Boniface 2022-07-06 15:58:57 -04:00
parent d8d3feee22
commit 92e2ff7449
1 changed files with 3 additions and 2 deletions

View File

@ -1239,8 +1239,9 @@ class CephSnapshotInstance(object):
# Primary command function # Primary command function
# This command pipe is only used for OSD adds and removes # This command pipe is only used for OSD adds and removes
def ceph_command(zkhandler, logger, this_node, data, d_osd): def ceph_command(zkhandler, logger, this_node, data, d_osd):
# Get the command and args # Get the command and args; the * + join ensures arguments with spaces (e.g. detect strings) are recombined right
command, args = data.split() command, *args = data.split()
args = " ".join(args)
# Adding a new OSD # Adding a new OSD
if command == "osd_add": if command == "osd_add":