osx_defaults: Do not make any changes in check mode

reviewable/pr18780/r1
yta 9 years ago
parent 14a62fb5d6
commit 2e9797ca8c

@ -257,6 +257,8 @@ class OSXDefaults(object):
print "Absent state detected!"
if self.current_value is None:
return False
if self.module.check_mode:
return True
self.delete()
return True
@ -274,6 +276,9 @@ class OSXDefaults(object):
elif self.current_value == self.value:
return False
if self.module.check_mode:
return True
# Change/Create/Set given key/value for domain in defaults
self.write()
return True

Loading…
Cancel
Save