mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Ensure state is present if no value provided
This commit is contained in:
committed by
Matt Martz
parent
ba4b2d04d9
commit
af0bcb354d
@@ -58,6 +58,9 @@ Elseif ($state -eq "absent") {
|
||||
Fail-Json $_.Exception.Message
|
||||
}
|
||||
}
|
||||
Else {
|
||||
$state = "present"
|
||||
}
|
||||
|
||||
$feature_results = @()
|
||||
ForEach ($item in $result.FeatureResult) {
|
||||
|
||||
Reference in New Issue
Block a user