mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix issue with cp.push (#36136)
Incorrect handling of os.path.splitdrive()
This commit is contained in:
parent
0e13118f6e
commit
6242702288
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue