2
0
Эх сурвалжийг харах

Merge pull request #2263 from opencost/v1.107-patch/replace-missing-func

replace missing func
Sean Holcomb 2 жил өмнө
parent
commit
dbdf7c92dc

+ 9 - 0
pkg/cloud/aws/athenaintegration.go

@@ -442,3 +442,12 @@ func (ai *AthenaIntegration) GetConnectionStatusFromResult(result cloud.EmptyChe
 	}
 	return cloud.SuccessfulConnection
 }
+
+func (ai *AthenaIntegration) GetConnectionStatus() string {
+	// initialize status if it has not done so; this can happen if the integration is inactive
+	if ai.ConnectionStatus.String() == "" {
+		ai.ConnectionStatus = cloud.InitialStatus
+	}
+
+	return ai.ConnectionStatus.String()
+}