Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -529,6 +529,8 @@ def absent(name): | |
return _error( | ||
ret, 'Specified file {0} is not an absolute path'.format(name) | ||
) | ||
if name == '/': | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
SEJeff
Contributor
|
||
return _error(ret, 'Refusing to make "/" absent') | ||
if os.path.isfile(name) or os.path.islink(name): | ||
if __opts__['test']: | ||
ret['result'] = None | ||
|
How about:
There is likely never ever a time you'd want to on purpose do that. Especially seeing how
.
by default is normally root's homedir aka/root
and..
is by default/