Skip to content

Commit

Permalink
pubsys: fix put-parameter taking a empty list
Browse files Browse the repository at this point in the history
Ensure we pass None if the list of names we're passing is empty.
  • Loading branch information
etungsten committed Mar 15, 2023
1 parent b346f78 commit 035b533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pubsys/src/aws/ssm/ssm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ where
let len = names_chunk.len();
let get_future = ssm_client
.get_parameters()
.set_names(Some(names_chunk.to_vec()))
.set_names((!names_chunk.is_empty()).then_some(names_chunk.to_vec().clone()))
.send();

// Store the region so we can include it in errors and the output map
Expand Down

0 comments on commit 035b533

Please sign in to comment.