Skip to content

Commit

Permalink
fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewuolle committed Sep 23, 2024
1 parent 8e9ad25 commit d201d5e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/managedcluster/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
"github.com/Mirantis/hmc/test/kubeclient"
)

func getAzureInfo(ctx context.Context, name string, kc *kubeclient.KubeClient) (map[string]interface{}, error) {
func getAzureInfo(ctx context.Context, name string, kc *kubeclient.KubeClient) map[string]interface{} {
GinkgoHelper()
resourceId := schema.GroupVersionResource{
Group: "infrastructure.cluster.x-k8s.io",
Expand All @@ -58,13 +58,12 @@ func getAzureInfo(ctx context.Context, name string, kc *kubeclient.KubeClient) (
spec, found, err := unstructured.NestedMap(list.Items[0].Object, "spec")
Expect(err).NotTo(HaveOccurred())
Expect(found).To(BeTrue())
return spec, nil
return spec
}

func SetAzureEnvironmentVariables(clusterName string, kc *kubeclient.KubeClient) {
GinkgoHelper()
spec, err := getAzureInfo(context.Background(), clusterName, kc)
Expect(err).NotTo(HaveOccurred())
spec := getAzureInfo(context.Background(), clusterName, kc)

networkSpec, found, err := unstructured.NestedMap(spec, "networkSpec")
Expect(err).NotTo(HaveOccurred())
Expand Down

0 comments on commit d201d5e

Please sign in to comment.