Skip to content

Commit de05375

Browse files
authored
Merge pull request #18 from opengisch/package_status_layers
Fix package status layers display in the CLI
2 parents 07de30a + ea61f30 commit de05375

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/bin/qfieldcloud-cli

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,10 @@ def package_status(ctx, project_id):
300300
if status["layers"] is None:
301301
if status["status"] == "STATUS_ERROR":
302302
print("Packaging have never been triggered on this project. Please run:")
303-
print(f"qfieldcloud-cli packaging-trigger {project_id}")
304-
303+
print(f"qfieldcloud-cli package-trigger {project_id}")
305304
return
306305

307-
for layer_obj in status["layers"]["steps"][1]["outputs"][
308-
"layer_checks"
309-
].values():
306+
for layer_obj in status["layers"].values():
310307
if layer_obj["valid"]:
311308
print(
312309
f'Layer "{layer_obj["name"]}" is valid, finished with status: {layer_obj["status"]}'

0 commit comments

Comments
 (0)