You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is going to be very ugly to unpack (and why using CFPreferences API over defaults read is better) but one potential solution (that likely will not work with more advanced arrays):
The command above takes off the [] since that's not a format that defaults read uses and adds four spaces. This then allows the line to return correctly.
Description
When setting an array as a value for a key using
macos_userdefaults
, chef will set the array every chef run.Chef Version
16.2.50
Platform Version
10.16 (but probably <= 10.15 as well)
Replication Case
Attempt to set an array as a value for a key using
macos_userdefaults
Client Output
Nothing relevant. Run chef 2-3 times, it will set the key every run as the idempotence check isn't working correctly.
The text was updated successfully, but these errors were encountered: