mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
remove empty strings from list but not ones with one empty space char
This commit is contained in:
parent
0af343e71f
commit
e0df047000
1 changed files with 1 additions and 1 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Reference in a new issue