From 2b46c89226654dbf1a1f52294513dce02f362d06 Mon Sep 17 00:00:00 2001 From: David Boucha Date: Thu, 21 Mar 2013 21:01:53 -0600 Subject: [PATCH] Fix posix path separator --- salt/states/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/file.py b/salt/states/file.py index 05965ea538..538602f660 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -1236,7 +1236,7 @@ def recurse(name, if include_empty: mdirs = __salt__['cp.list_master_dirs'](env) for mdir in mdirs: - if not mdir.startswith('{0}{1}'.format(srcpath, os.path.sep)): + if not mdir.startswith('{0}{1}'.format(srcpath, '/')): #same as above continue mdest = os.path.join(name, os.path.relpath(mdir, srcpath)) manage_directory(mdest)