Skip to content

Commit fabde06

Browse files
committed
improve the log message
1 parent 24f98da commit fabde06

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

kubernetes/windows/main.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ function Get-ClusterCloudEnvironment {
215215
if (![string]::IsNullOrEmpty($clusterCloudEnvironment) -and (Is-SupportedCloudEnvironment $clusterCloudEnvironment)) {
216216
$cloud_environment = $clusterCloudEnvironment
217217
} else {
218-
Write-Host "CLUSTER_CLOUD_ENVIRONMENT environment variable is not set. Falling back to determine the cloud environment based on the Log Analytics Workspace DOMAIN, as this is required for correct configuration in multi-cloud scenarios when the explicit environment variable is missing."
219-
# If CLUSTER_CLOUD_ENVIRONMENT is not set, fall back to determining the cloud environment using the Log Analytics Workspace DOMAIN.
220-
# This fallback ensures the agent can still identify the correct cloud environment.
218+
Write-Host "CLUSTER_CLOUD_ENVIRONMENT environment variable is not set. Falling back to determine the cloud environment based on the Log Analytics Workspace DOMAIN"
221219
$domain = Get-LogAnalyticsWorkspaceDomain
222220
if (![string]::IsNullOrEmpty($domain)) {
223221
switch ($domain) {

0 commit comments

Comments
 (0)