We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90b1239 commit 9bc601eCopy full SHA for 9bc601e
1 file changed
coman/src/cscs/api_client/types.rs
@@ -142,7 +142,7 @@ pub enum JobStatus {
142
}
143
impl From<String> for JobStatus {
144
fn from(value: String) -> Self {
145
- match value.as_str() {
+ match value.split_whitespace().next().unwrap() {
146
"RUNNING" => JobStatus::Running,
147
"FAILED" => JobStatus::Failed,
148
"COMPLETED" => JobStatus::Finished,
0 commit comments