Skip to content

Commit

Permalink
Fix getAZ translation (#68)
Browse files Browse the repository at this point in the history
Turns out it doesn't work. Fixes #67
  • Loading branch information
iph authored Sep 26, 2022
1 parent d806bdd commit 4be4229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/synthesizer/typescript_synthesizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ pub fn to_string_ir(resource_value: &ResourceIr) -> Option<String> {
let str = to_string_ir(x.as_ref()).unwrap();
// This means it's just a ""
if str.len() == 2 {
return Option::Some("cdk.Fn.getAZs()".to_string());
return Option::Some("cdk.Fn.getAzs()".to_string());
}
Option::Some(format!("cdk.Fn.getAZs({})", str))
Option::Some(format!("cdk.Fn.getAzs({})", str))
}
ResourceIr::Select(index, obj) => {
let str = to_string_ir(obj.as_ref()).unwrap();
Expand Down

0 comments on commit 4be4229

Please sign in to comment.