mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
This reverts commit f2bd6b6bfd.
This commit is contained in:
@@ -194,8 +194,6 @@ if ($will_change -eq $true) {
|
||||
if ($new_value -cne $value) {
|
||||
Fail-Json $result "Failed to change the value for key '$key' in section '$section', the value is still $new_value"
|
||||
}
|
||||
} elseif ([string]$value -eq "") {
|
||||
# Value was empty, so OK if no longer in the result
|
||||
} else {
|
||||
Fail-Json $result "The key '$key' in section '$section' is not a valid key, cannot set this value"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user