Skip to content

Commit 27ac17f

Browse files
use const instead of hardcoded string
1 parent aefdd49 commit 27ac17f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloud/instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func (c *client) buildIPEntry(resolvedNet *cloudstack.Network, ip string) (map[s
343343
}
344344
}
345345

346-
if resolvedNet.Type == "Shared" {
346+
if resolvedNet.Type == NetworkTypeShared {
347347
isAvailable, err := c.isFreeIPAvailable(resolvedNet.Id, ip)
348348
if err != nil {
349349
return nil, err

0 commit comments

Comments
 (0)