remove empty strings from list but not ones with one empty space char

This commit is contained in:
Andreas Tsaridas 2016-12-12 19:01:09 +01:00 committed by rallytime
parent 0af343e71f
commit e0df047000

View file

@ -688,7 +688,7 @@ def push(path, keep_symlinks=False, upload_path=None, remove_source=False):
load_path_split_drive = os.path.splitdrive(load_path_normal)[1]
# Finally, split the remaining path into a list for delivery to the master
load_path_list = load_path_split_drive.split(os.sep)
load_path_list = filter(None, load_path_split_drive.split(os.sep))
load = {'cmd': '_file_recv',
'id': __opts__['id'],