Skip to content

Commit

Permalink
fix(links): log resource creation at creation time
Browse files Browse the repository at this point in the history
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
  • Loading branch information
kate-goldenring committed Jan 29, 2024
1 parent 80d1c0c commit b1457e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/deploy/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ pub(super) async fn create_resources_for_new_app(
let label_types = db_label_types
.chain(kv_label_types)
.collect::<Vec<(_, _)>>();
println!("Creating resources {label_types:?}");
for (label, resource_type) in label_types {
let resource = match get_resource_selection_for_new_app(
app_name,
Expand All @@ -281,12 +280,14 @@ pub(super) async fn create_resources_for_new_app(
ResourceSelection::New(r) => {
match resource_type {
ResourceType::Database => {
println!("Creating {resource_type} named '{r}'");
client
.create_database(r.clone(), None)
.await
.context("Could not create database")?;
}
ResourceType::KeyValueStore => {
println!("Creating {resource_type} named '{r}'");
client
.create_key_value_store(&r, None)
.await
Expand Down

0 comments on commit b1457e8

Please sign in to comment.