Skip to content

Commit

Permalink
keyring init failed
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Liu <[email protected]>
  • Loading branch information
austin362667 committed Aug 14, 2024
1 parent 56388b6 commit 273d6f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flyteidl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ serde = { version = "1.0.204", features = ["serde_derive"]}
base64 = "0.22.1"
oauth2 ={ version = "4.4.2", features = ["ureq"] }
url = "2.5.0"
keyring = { version = "3.0.4", features = ["vendored", "linux-native"] }
keyring = { version = "3.0.4", features = ["linux-native", "apple-native", "windows-native"] }
openssl = { version = "0.10.64", features = ["vendored"] }
anyhow = "1.0.86"
6 changes: 3 additions & 3 deletions flyteidl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -840,12 +840,12 @@ pub mod _flyteidl_rust {

let credentials_for_endpoint: &str = endpoint; // TODO: The default key in flytekit is `flyte-default``
let credentials_access_token_key: &str = "access_token";
// println!("{:?}", credentials_for_endpoint);
println!("{:?}", credentials_for_endpoint);
let entry: Entry =
match Entry::new(credentials_for_endpoint, credentials_access_token_key) {
Ok(entry) => entry,
Err(err) => {
// println!("{}", credentials_access_token_key);
println!("{}", credentials_access_token_key);
panic!("Failed at initializing keyring, not available.");
}
};
Expand Down Expand Up @@ -894,7 +894,7 @@ pub mod _flyteidl_rust {

let access_token: String = match entry.get_password() {
Ok(access_token) => {
// println!("keyring retrieved successfully.");
println!("keyring retrieved successfully.");
access_token
}
Err(error) => {
Expand Down

0 comments on commit 273d6f6

Please sign in to comment.