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