File 0047-Fix-issue-with-cp.push-36136.patch of Package salt.4663
From 698cbc441c511b87c121c20ac636ed9b3c0b4f55 Mon Sep 17 00:00:00 2001
From: Mike Place <mp@saltstack.com>
Date: Fri, 9 Sep 2016 00:27:28 +0900
Subject: [PATCH 47/47] Fix issue with cp.push (#36136)
Incorrect handling of os.path.splitdrive()
---
salt/modules/cp.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/salt/modules/cp.py b/salt/modules/cp.py
index 56985ee12c..42e15755db 100644
--- a/salt/modules/cp.py
+++ b/salt/modules/cp.py
@@ -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)
--
2.11.0