Fix bug with space-containing detect strings
This commit is contained in:
		@@ -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":
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user