mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix issue with cp.push (#36136)
Incorrect handling of os.path.splitdrive()
This commit is contained in:
parent
0e13118f6e
commit
6242702288
@ -787,7 +787,7 @@ def push(path, keep_symlinks=False, upload_path=None):
|
||||
load_path_normal = os.path.normpath(load_path)
|
||||
|
||||
# If this is Windows and a drive letter is present, remove it
|
||||
load_path_split_drive = os.path.splitdrive(load_path_normal)[1:]
|
||||
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 = os.path.split(load_path_split_drive)
|
||||
|
Loading…
Reference in New Issue
Block a user