Skip to content

Commit

Permalink
B #497: fix vmgroup antiaff variable name at read
Browse files Browse the repository at this point in the history
  • Loading branch information
treywelsh committed Jul 1, 2024
1 parent 2c33564 commit 34cbb64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.4.2 (Unreleased)

BUG FIXES:

* resources/opennebula_vm_group: fix anti affinity reading (#497)

# 1.4.1 (Unreleased)

FEATURES:
Expand Down
2 changes: 1 addition & 1 deletion opennebula/resource_opennebula_vm_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func flattenVMGroupRoles(d *schema.ResourceData, vmgRoles []vmgroup.Role) error
hostAntiAffString := strings.Split(vmgr.HostAntiAffined, ",")
for _, h := range hostAntiAffString {
hostAntiAffInt, _ := strconv.ParseInt(h, 10, 0)
hAntiAff = append(hAff, int(hostAntiAffInt))
hAntiAff = append(hAntiAff, int(hostAntiAffInt))
}
}
roles = append(roles, map[string]interface{}{
Expand Down

0 comments on commit 34cbb64

Please sign in to comment.