From 273d6f6f693197b06fc6394fe6d71ee1ad9beafa Mon Sep 17 00:00:00 2001 From: Austin Liu Date: Wed, 14 Aug 2024 15:43:18 +0800 Subject: [PATCH] keyring init failed Signed-off-by: Austin Liu --- flyteidl/Cargo.toml | 2 +- flyteidl/src/lib.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flyteidl/Cargo.toml b/flyteidl/Cargo.toml index 4d7d4cda1c..bd16438acf 100644 --- a/flyteidl/Cargo.toml +++ b/flyteidl/Cargo.toml @@ -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" diff --git a/flyteidl/src/lib.rs b/flyteidl/src/lib.rs index 6f270b45b8..6a4d69f3b0 100644 --- a/flyteidl/src/lib.rs +++ b/flyteidl/src/lib.rs @@ -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."); } }; @@ -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) => {