Skip to content

Commit

Permalink
F #485: add opennebula_virtual_machines tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jaime <[email protected]>
  • Loading branch information
jaimecb committed Nov 14, 2024
1 parent 2e26523 commit 1897511
Show file tree
Hide file tree
Showing 3 changed files with 452 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opennebula/data_opennebula_virtual_machines.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func dataOpennebulaVirtualMachines() *schema.Resource {
Description: "Attribute used to sort the VMs list, only works on integer attributes.",

ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
value := strings.ToUpper(v.(string))
value := strings.ToLower(v.(string))

if !contains(value, sortOnVMsValues) {
errors = append(errors, fmt.Errorf("type %q must be one of: %s", k, strings.Join(sortOnVMsValues, ",")))
Expand Down
Loading

0 comments on commit 1897511

Please sign in to comment.