Skip to content

Commit

Permalink
Add user_id/OS_USER_ID option to config
Browse files Browse the repository at this point in the history
  • Loading branch information
milliams committed Sep 18, 2023
1 parent ceb26de commit 8076140
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/loading/cloud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ pub(crate) struct Auth {
pub(crate) username: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub(crate) user_domain_name: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub(crate) user_id: Option<String>,
}

/// Cloud configuration.
Expand Down
1 change: 1 addition & 0 deletions src/loading/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fn _from_env<E: Environment>(env: E) -> Result<CloudConfig, Error> {
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 {
Expand Down

0 comments on commit 8076140

Please sign in to comment.