Skip to content

Commit 390d40a

Browse files
committed
Fix infra update-app --all
Doh.
1 parent 95f0523 commit 390d40a

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

nava/platform/cli/commands/infra/update_command.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,17 @@ def update_app(
8787
ctx.console.error.print(f"Apps {wrong_app_names} do not exist in the project")
8888
ctx.exit(1)
8989

90-
for app_name in app_names:
91-
ctx.console.rule(f"Infra app: {app_name}")
92-
template.update_app(
93-
project,
94-
app_name,
95-
version=version,
96-
data=data,
97-
commit=commit,
98-
answers_only=answers_only,
99-
force=force,
100-
)
90+
if not app_names:
91+
ctx.fail("No apps found")
92+
93+
for app_name in app_names:
94+
ctx.console.rule(f"Infra app: {app_name}")
95+
template.update_app(
96+
project,
97+
app_name,
98+
version=version,
99+
data=data,
100+
commit=commit,
101+
answers_only=answers_only,
102+
force=force,
103+
)

0 commit comments

Comments
 (0)