mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Resolve paths passed directly with --files
This commit is contained in:
parent
6ba77aa282
commit
dfddc15569
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ def build_file_list(files, extension):
|
|||
if not _files:
|
||||
_files = CODE_DIR.rglob("*{}".format(extension))
|
||||
else:
|
||||
_files = [pathlib.Path(fname) for fname in _files]
|
||||
_files = [pathlib.Path(fname).resolve() for fname in _files]
|
||||
_files = [path.relative_to(CODE_DIR) for path in _files]
|
||||
return _files
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue