Skip to content

Commit d4aa1ca

Browse files
Merge pull request #8529 from barbacbd/minor-changes-for-linter
no-jira: Minor updates to fix linting issues.
2 parents 335465c + b414f7b commit d4aa1ca

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

pkg/agent/cluster.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ func (czero *Cluster) MonitorStatusFromAssistedService() (bool, error) {
281281
validationsErr := checkValidations(clusterMetadata, czero.installHistory.ValidationResults, logrus.StandardLogger(), logPrefix)
282282
if validationsErr != nil {
283283
return false, errors.Wrap(validationsErr, "host validations failed")
284-
285284
}
286285

287286
// Print most recent event associated with the clusterInfraEnvID

pkg/asset/agent/image/ignition_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func TestIgnition_getTemplateData(t *testing.T) {
9191
clusterName := "test-agent-cluster-install.test"
9292

9393
privateKey := "-----BEGIN EC PUBLIC KEY-----\nMFkwEwYHKoAiDHV4tg==\n-----END EC PUBLIC KEY-----\n"
94-
publicKey := "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIOSCfDNmx0qe6dncV4tg==\n-----END EC PRIVATE KEY-----\n"
94+
publicKey := "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIOSCfDNmx0qe6dncV4tg==\n-----END EC PRIVATE KEY-----\n" //nolint:gosec
9595

9696
templateData := getTemplateData(clusterName, pullSecret, releaseImageList, releaseImage, releaseImageMirror, haveMirrorConfig, publicContainerRegistries, agentClusterInstall.Spec.ProvisionRequirements.ControlPlaneAgents, agentClusterInstall.Spec.ProvisionRequirements.WorkerAgents, infraEnvID, osImage, proxy, "minimal-iso", privateKey, publicKey, "")
9797
assert.Equal(t, clusterName, templateData.ClusterName)

pkg/asset/manifests/aws/zones_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ func stubInstallConfigPoolControl() *types.MachinePool {
8787
}
8888

8989
func tSortCapaSubnetsByID(in capa.Subnets) capa.Subnets {
90-
subnetIds := []string{}
90+
subnetIDs := []string{}
9191
subnetsMap := make(map[string]capa.SubnetSpec, len(in))
9292
for _, subnet := range in {
9393
subnetsMap[subnet.ID] = subnet
94-
subnetIds = append(subnetIds, subnet.ID)
94+
subnetIDs = append(subnetIDs, subnet.ID)
9595
}
96-
sort.Strings(subnetIds)
96+
sort.Strings(subnetIDs)
9797
out := capa.Subnets{}
98-
for _, sid := range subnetIds {
98+
for _, sid := range subnetIDs {
9999
out = append(out, subnetsMap[sid])
100100
}
101101
return out

0 commit comments

Comments
 (0)