Skip to content

Commit

Permalink
Handle leading | in fileclient, Fix #5013
Browse files Browse the repository at this point in the history
  • Loading branch information
basepi committed May 14, 2013
1 parent 42042e0 commit 99ecd9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/fileclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 99ecd9f

Please sign in to comment.