mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
normalize requirements path to be absolute
This commit is contained in:
parent
bdec73bb03
commit
f773d63cbb
1 changed files with 3 additions and 0 deletions
|
@ -289,6 +289,9 @@ def _process_requirements(requirements, cmd, cwd, saltenv, user):
|
|||
logger.info('request files: {0}'.format(str(reqs)))
|
||||
|
||||
for req_file in reqs:
|
||||
if not os.path.isabs(req_file):
|
||||
req_file = os.path.join(cwd, req_file)
|
||||
|
||||
logger.debug('TREQ N CWD: %s -- %s -- for %s', str(treq), str(cwd), str(req_file))
|
||||
target_path = os.path.join(treq, os.path.basename(req_file))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue