fixes saltstack/salt#47201 reports unmounted file system as unchanged in test mode

This commit is contained in:
nicholasmhughes 2022-08-30 10:59:04 -04:00 committed by Megan Wilhite
parent b3c6d949ba
commit 662cfbadfa
4 changed files with 1292 additions and 1305 deletions

1
changelog/47201.fixed Normal file
View file

@ -0,0 +1 @@
Fix mount.mounted with 'mount: False' reports unmounted file system as unchanged when running with test=True

View file

@ -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)

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff