mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 01:30:20 +00:00
fixes saltstack/salt#47201 reports unmounted file system as unchanged in test mode
This commit is contained in:
parent
b3c6d949ba
commit
662cfbadfa
4 changed files with 1292 additions and 1305 deletions
1
changelog/47201.fixed
Normal file
1
changelog/47201.fixed
Normal file
|
@ -0,0 +1 @@
|
|||
Fix mount.mounted with 'mount: False' reports unmounted file system as unchanged when running with test=True
|
|
@ -667,7 +667,6 @@ def mounted(
|
|||
ret["comment"] = "{} not present and not mounted".format(name)
|
||||
else:
|
||||
if __opts__["test"]:
|
||||
ret["result"] = None
|
||||
ret["comment"] = "{} would not be mounted".format(name)
|
||||
else:
|
||||
ret["comment"] = "{} not mounted".format(name)
|
||||
|
|
1291
tests/pytests/unit/states/test_mount.py
Normal file
1291
tests/pytests/unit/states/test_mount.py
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue