diff --git a/src/loading/cloud.rs b/src/loading/cloud.rs index b473773..d4ed6a0 100644 --- a/src/loading/cloud.rs +++ b/src/loading/cloud.rs @@ -52,6 +52,8 @@ pub(crate) struct Auth { pub(crate) username: Option, #[serde(skip_serializing_if = "Option::is_none")] pub(crate) user_domain_name: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub(crate) user_id: Option, } /// Cloud configuration. diff --git a/src/loading/env.rs b/src/loading/env.rs index d4dffef..e03f139 100644 --- a/src/loading/env.rs +++ b/src/loading/env.rs @@ -50,6 +50,7 @@ fn _from_env(env: E) -> Result { token: env.get("OS_TOKEN").ok(), username: env.get("OS_USERNAME").ok(), user_domain_name: env.get("OS_USER_DOMAIN_NAME").ok(), + user_id: env.get("OS_USER_ID").ok(), }; let config = CloudConfig {