diff --git a/salt/modules/cp.py b/salt/modules/cp.py index 2156735ca0..18d999f054 100644 --- a/salt/modules/cp.py +++ b/salt/modules/cp.py @@ -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 = [_f for _f in load_path_split_drive.split(os.sep) if _f] load = {'cmd': '_file_recv', 'id': __opts__['id'],