Skip to content

Commit 167cf37

Browse files
chore: sets displaytext as name when null
1 parent 1573e63 commit 167cf37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloudstack/resource_cloudstack_network.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ func resourceCloudStackNetworkCreate(d *schema.ResourceData, meta interface{}) e
180180

181181
if displaytext, ok := d.GetOk("display_text"); ok {
182182
p.SetDisplaytext(displaytext.(string))
183+
} else {
184+
p.SetDisplaytext(name)
183185
}
184186

185187
// Get the network offering to check if it supports specifying IP ranges

0 commit comments

Comments
 (0)