Skip to content

Commit 37d6643

Browse files
author
Joshua Reed
committed
Small fixups.
1 parent ac465e3 commit 37d6643

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/cloud/isolated_network.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,9 @@ func (c *client) GetOrCreateIsolatedNetwork(
247247
if err = c.CreateIsolatedNetwork(zone, isoNet); err != nil {
248248
return errors.Wrap(err, "creating a new isolated network")
249249
}
250+
} else {
251+
isoNet.Spec.ID = net.ID
250252
}
251-
isoNet.Spec.ID = net.ID
252253

253254
// Tag the created network.
254255
networkID := isoNet.Spec.ID

test/helpers/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func GetOrCreateUserWithKey(csClient *cloudstack.CloudStackClient, user *cloud.U
166166
} else { // User not found, create user.
167167
// TODO: If ever needed, actually implement user creation here.
168168
// For now we only care about the default account since this is a testing infrastructure method.
169-
return fmt.Errorf("User not found for %s", user.Name)
169+
return fmt.Errorf("user not found for %s", user.Name)
170170
}
171171

172172
pGKey := csClient.User.NewGetUserKeysParams(user.ID)

0 commit comments

Comments
 (0)