summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nm-cloud-setup/nmcs-provider-aliyun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nm-cloud-setup/nmcs-provider-aliyun.c b/src/nm-cloud-setup/nmcs-provider-aliyun.c
index 0500922058..36358f98d9 100644
--- a/src/nm-cloud-setup/nmcs-provider-aliyun.c
+++ b/src/nm-cloud-setup/nmcs-provider-aliyun.c
@@ -31,11 +31,12 @@ again:
* This is mainly for testing, it's not usually supposed to be configured.
* Consider this private API! */
base = g_getenv(NMCS_ENV_VARIABLE("NM_CLOUD_SETUP_ALIYUN_HOST"));
+ base = nmcs_utils_uri_complete_interned(base) ?: ("" NM_ALIYUN_HOST);
if (!g_atomic_pointer_compare_and_exchange(&base_cached, NULL, base))
goto again;
}
- base = nmcs_utils_uri_complete_interned(base) ?: ("" NM_ALIYUN_BASE);
+
return base;
}