Skip to content

Commit

Permalink
fix: create CFS session type dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Sopena Ballesteros committed Oct 25, 2024
1 parent a14e6d5 commit 92325b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/cfs/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,10 @@ pub mod mesa {
source_id: base_image_id.expect("ERROR - can't create a CFS session to build an image without base image id"),
result_name: result_image_name.expect("ERROR - can't create a CFS sessions to build an image without result image name"),
}]);
} else {
cfs_session.target.definition = Some("dynamic".to_string());
cfs_session.target.groups = None;
cfs_session.target.image_map = Some(Vec::new());
}

cfs_session.tags = tags;
Expand Down
4 changes: 1 addition & 3 deletions src/common/gitea.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,10 @@ pub mod http_client {
}

let api_url = format!(
"{}/api/v1/repos/cray/{}/git/commits/{}",
"{}api/v1/repos/{}/git/commits/{}",
gitea_base_url, repo_name, commitid
);

log::debug!("Request to {}", api_url);

let response = client
.get(api_url)
.header("Authorization", format!("token {}", gitea_token))
Expand Down

0 comments on commit 92325b8

Please sign in to comment.