Skip to content

Commit

Permalink
Merge pull request #277 from varadaprakash/main
Browse files Browse the repository at this point in the history
bug: added support for Name parameter under scope variables
  • Loading branch information
semyonmor authored Oct 28, 2024
2 parents a22df80 + 9c52b0e commit 8fd6818
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aquasec/resource_container_runtime_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,10 @@ func resourceContainerRuntimePolicy() *schema.Resource {
Description: "Variable value.",
Required: true,
},
"name": {
Type: schema.TypeString,
Optional: true,
},
},
},
},
Expand Down
1 change: 1 addition & 0 deletions aquasec/resource_host_runtime_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3007,6 +3007,7 @@ func flattenVariables(variables []interface{}) []client.Variable {
val := v.(map[string]interface{})
result = append(result, client.Variable{
Attribute: val["attribute"].(string),
Name: val["name"].(string),
Value: val["value"].(string),
})
}
Expand Down

0 comments on commit 8fd6818

Please sign in to comment.