Skip to content

Commit

Permalink
Add command to create credentials on Capella cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
Westwooo committed Aug 7, 2024
1 parent 181815b commit 1158ceb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli/credentials_create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl Command for crate::cli::CredentialsCreate {
}

fn usage(&self) -> &str {
"Creates credentials on a Capella cluster"
"Creates a new cluster on the active Capella organization"
}

fn run(
Expand Down Expand Up @@ -94,7 +94,7 @@ fn credentials_create(
project_id.clone(),
)?;

if json_cluster.state() != "healthy" {
if json_cluster.state() != "healthy".to_string() {
return Err(ShellError::GenericError {
error: "Cannot create credentials until cluster state is healthy".to_string(),
msg: "".to_string(),
Expand Down Expand Up @@ -131,7 +131,7 @@ fn credentials_create(
}
};

let payload = CredentialsCreateRequest::new(name.clone(), password.clone());
let payload = CredentialsCreateRequest::new(name.clone(), password.clone().into());

client
.create_credentials(
Expand Down

0 comments on commit 1158ceb

Please sign in to comment.