Skip to content

Commit

Permalink
fix typo in helper function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Esgrove committed Nov 14, 2024
1 parent b287d34 commit 5f2996a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python-pyo3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ fn vault_error_to_anyhow(err: VaultError) -> anyhow::Error {

/// Convert `CloudFormationStackData` to a Python dictionary.
// Lifetime annotations are required due to `&str` usage,
// could be left out if passing a `String` for result message.
fn stack_data_to_to_pydict<'a>(
// could be left out if passing a `String` for the result message.
fn stack_data_to_pydict<'a>(
py: Python<'a>,
data: CloudFormationStackData,
result: &'a str,
Expand Down Expand Up @@ -162,11 +162,11 @@ fn init(
})?;
Python::with_gil(|py| match result {
CreateStackResult::Exists { data } => {
let dict = stack_data_to_to_pydict(py, data, "EXISTS");
let dict = stack_data_to_pydict(py, data, "EXISTS");
Ok(dict.into())
}
CreateStackResult::ExistsWithFailedState { data } => {
let dict = stack_data_to_to_pydict(py, data, "EXISTS_WITH_FAILED_STATE");
let dict = stack_data_to_pydict(py, data, "EXISTS_WITH_FAILED_STATE");
Ok(dict.into())
}
CreateStackResult::Created {
Expand Down Expand Up @@ -260,7 +260,7 @@ fn stack_status(
})?;

Python::with_gil(|py| {
let dict = stack_data_to_to_pydict(py, data, "SUCCESS");
let dict = stack_data_to_pydict(py, data, "SUCCESS");
Ok(dict.into())
})
}
Expand Down Expand Up @@ -308,7 +308,7 @@ fn update(

Python::with_gil(|py| match result {
UpdateStackResult::UpToDate { data } => {
let dict = stack_data_to_to_pydict(py, data, "UP_TO_DATE");
let dict = stack_data_to_pydict(py, data, "UP_TO_DATE");
Ok(dict.into())
}
UpdateStackResult::Updated {
Expand Down

0 comments on commit 5f2996a

Please sign in to comment.