mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Excluding relative dirs in state.file.retention_schedule
This commit should resolve #48637
This commit is contained in:
parent
0d4c80205f
commit
5539eff39e
1 changed files with 2 additions and 0 deletions
|
@ -3737,6 +3737,8 @@ def retention_schedule(name, retain, strptime_format=None, timezone=None):
|
|||
return (None, None)
|
||||
|
||||
def get_file_time_from_mtime(f):
|
||||
if f == '.' or f == '..':
|
||||
return (None,None)
|
||||
lstat = __salt__['file.lstat'](os.path.join(name, f))
|
||||
if lstat:
|
||||
mtime = lstat['st_mtime']
|
||||
|
|
Loading…
Add table
Reference in a new issue