Skip to content

Commit

Permalink
fix: fix bug when fetching cfs sessions based that succeeded
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Sopena Ballesteros committed Jan 19, 2024
1 parent bb23251 commit c58f40d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cfs/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub mod shasta {
shasta_base_url: &str,
shasta_root_cert: &[u8],
session_name_opt: Option<&String>,
is_succeded: Option<bool>,
is_succeded_opt: Option<bool>,
) -> Result<reqwest::Response, reqwest::Error> {
let client_builder = reqwest::Client::builder()
.add_root_certificate(reqwest::Certificate::from_pem(shasta_root_cert)?);
Expand All @@ -39,7 +39,7 @@ pub mod shasta {
// Add params to request
let mut request_payload = Vec::new();

if is_succeded.is_some() {
if let Some(is_succeded) = is_succeded_opt {
request_payload.push(("succeced", is_succeded));
}

Expand Down

0 comments on commit c58f40d

Please sign in to comment.