From d201d5e7fa6e3b10866ee79d499224c28cd1d67f Mon Sep 17 00:00:00 2001 From: Kyle Wuolle Date: Mon, 23 Sep 2024 13:16:45 -0700 Subject: [PATCH] fix linting error --- test/managedcluster/azure/azure.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/managedcluster/azure/azure.go b/test/managedcluster/azure/azure.go index 4e44b499f..80dff3299 100644 --- a/test/managedcluster/azure/azure.go +++ b/test/managedcluster/azure/azure.go @@ -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", @@ -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())