From 99ecd9f587ebbb972f406794a702f35fbba43d4c Mon Sep 17 00:00:00 2001 From: Colton Myers Date: Tue, 14 May 2013 14:37:04 -0600 Subject: [PATCH] Handle leading | in fileclient, Fix #5013 --- salt/fileclient.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/salt/fileclient.py b/salt/fileclient.py index 90863626a348..15c5357b7980 100644 --- a/salt/fileclient.py +++ b/salt/fileclient.py @@ -411,6 +411,9 @@ def _find_file(self, path, env='base'): 'rel': ''} if env not in self.opts['file_roots']: return fnd + if path.startswith('|'): + # The path arguments are escaped + path = path[1:] for root in self.opts['file_roots'][env]: full = os.path.join(root, path) if os.path.isfile(full):