Skip to content

Commit

Permalink
markUnsafe: fix empty array converted to nil
Browse files Browse the repository at this point in the history
Signed-off-by: Gaël Goinvic <gaelg@element.io>
  • Loading branch information
gaelgatelement committed May 3, 2023
1 parent 4046f7f commit 949e74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ansible/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func (r *runner) makeParameters(u *unstructured.Unstructured) map[string]interfa
func markUnsafe(values interface{}) interface{} {
switch v := values.(type) {
case []interface{}:
var p []interface{}
p := make([]interface{}, 0)
for _, n := range v {
p = append(p, markUnsafe(n))
}
Expand Down

0 comments on commit 949e74d

Please sign in to comment.