Skip to content

Commit

Permalink
krkn-lib update for node_filtering (#3)
Browse files Browse the repository at this point in the history
* updated krkn-lib

Signed-off-by: Tullio Sebastiani <[email protected]>

lockfile

updated lockfile

* updated parameters name to snake case
  • Loading branch information
tsebastiani authored Mar 6, 2024
1 parent 1b2881d commit 25a02d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def get_groups(group_id=None, run_id=None):
def validate_data_model(model: ChaosRunTelemetry) -> Optional[Response]:
for scenario in model.scenarios:
for attr, _ in scenario.__dict__.items():
if attr != "parametersBase64":
if attr != "parameters_base64":
if getattr(scenario, attr) is None or getattr(scenario, attr) == "":
return Response(
f"[bad request]: {attr} is null or empty", status=400
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ python = "^3.9"
flask = "^2.3.2"
zappa = "^0.57.0"
boto3 = "^1.26.148"
#krkn-lib = "^1.4.5"
krkn-lib = "^2.0.0"

#krkn-lib = "^2.0.0"
krkn-lib = "^2.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 25a02d4

Please sign in to comment.