mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
change file verification to exist
This commit is contained in:
parent
7355eb4ecd
commit
402b83e4d3
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ def present(name, acl_type, acl_name='', perms='', recurse=False):
|
|||
|
||||
_octal = {'r': 4, 'w': 2, 'x': 1, '-': 0}
|
||||
|
||||
if not os.path.isfile(name):
|
||||
if not os.path.exists(name):
|
||||
ret['comment'] = '{0} does not exist'.format(name)
|
||||
ret['result'] = False
|
||||
return ret
|
||||
|
@ -130,7 +130,7 @@ def absent(name, acl_type, acl_name='', perms='', recurse=False):
|
|||
'changes': {},
|
||||
'comment': ''}
|
||||
|
||||
if not os.path.isfile(name):
|
||||
if not os.path.exists(name):
|
||||
ret['comment'] = '{0} does not exist'.format(name)
|
||||
ret['result'] = False
|
||||
return ret
|
||||
|
|
Loading…
Add table
Reference in a new issue