Skip to content

Commit ff9bf2f

Browse files
Updates comments
1 parent 0e4bcb3 commit ff9bf2f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

pkg/cloud/azure/azure.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func CloudConfigTransformer(source string, infra *configv1.Infrastructure, netwo
151151
}
152152
}
153153

154-
// Ensure Cloud is set in cloud.conf matches what is set in infra
154+
// Ensure cloud set in cloud.conf matches infra
155155
if cfg.Cloud != "" {
156156
if !strings.EqualFold(string(cloud), cfg.Cloud) {
157157
return "",
@@ -160,13 +160,11 @@ func CloudConfigTransformer(source string, infra *configv1.Infrastructure, netwo
160160
}
161161
}
162162

163+
cfg.Cloud = string(cloud)
164+
163165
// TODO: Remove when you work this out (before merging)
164166
// Why is cfg.Cloud not typed: type AzureCloudEnvironment string
165167

166-
// At this point these should always be the same
167-
// comparrison
168-
cfg.Cloud = string(cloud)
169-
170168
// If the virtual machine type is not set we need to make sure it uses the
171169
// "standard" instance type. See OCPBUGS-25483 and OCPBUGS-20213 for more
172170
// information

0 commit comments

Comments
 (0)