mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #22289 from achernev/develop
Expand glob patterns in the path argument of file.find
This commit is contained in:
commit
368bfa377e
@ -686,7 +686,7 @@ def find(path, *args, **kwargs):
|
||||
except ValueError as ex:
|
||||
return 'error: {0}'.format(ex)
|
||||
|
||||
ret = [p for p in finder.find(os.path.expanduser(path))]
|
||||
ret = [item for i in [finder.find(p) for p in glob.glob(os.path.expanduser(path))] for item in i]
|
||||
ret.sort()
|
||||
return ret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user