Skip to content

Commit 9eca72d

Browse files
committed
fixing zone allocations tate field
1 parent 1ee7fcf commit 9eca72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudstack/resource_cloudstack_zone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func resourceCloudStackZoneCreate(d *schema.ResourceData, meta interface{}) erro
114114

115115
// Create a new parameters
116116
p := cs.Zone.NewCreateZoneParams(d.Get("dns1").(string), d.Get("internal_dns1").(string), d.Get("name").(string), d.Get("network_type").(string))
117-
if v, ok := d.GetOk("allocationstate"); ok {
117+
if v, ok := d.GetOk("allocation_state"); ok {
118118
p.SetAllocationstate(v.(string))
119119
}
120120
if v, ok := d.GetOk("dns2"); ok {

0 commit comments

Comments
 (0)