mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #43248 from treba123/patch-3
Add **kwargs to some file states
This commit is contained in:
commit
654ff158b9
@ -1411,7 +1411,8 @@ def symlink(
|
||||
return ret
|
||||
|
||||
|
||||
def absent(name):
|
||||
def absent(name,
|
||||
**kwargs):
|
||||
'''
|
||||
Make sure that the named file or directory is absent. If it exists, it will
|
||||
be deleted. This will work to reverse any of the functions in the file
|
||||
@ -1473,7 +1474,8 @@ def absent(name):
|
||||
return ret
|
||||
|
||||
|
||||
def exists(name):
|
||||
def exists(name,
|
||||
**kwargs):
|
||||
'''
|
||||
Verify that the named file or directory is present or exists.
|
||||
Ensures pre-requisites outside of Salt's purview
|
||||
@ -1499,7 +1501,8 @@ def exists(name):
|
||||
return ret
|
||||
|
||||
|
||||
def missing(name):
|
||||
def missing(name,
|
||||
**kwargs):
|
||||
'''
|
||||
Verify that the named file or directory is missing, this returns True only
|
||||
if the named file is missing but does not remove the file if it is present.
|
||||
|
Loading…
Reference in New Issue
Block a user