Skip to content

Commit

Permalink
BUG FIX: correct the flipped logic in is_workflow_config_valid
Browse files Browse the repository at this point in the history
  • Loading branch information
SHuang-Broad committed Oct 9, 2023
1 parent 394bbcd commit 4b82a84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lrmaCU/terra/submission/submission_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ def is_workflow_config_valid(ns: str, ws: str, workflow_name: str,
f" Manual intervention needed.")
raise FireCloudServerError(response.status_code, response.text)

invalid_config = False
config_is_valid = True
jes = response.json()
for k in ['extraInputs', 'invalidInputs', 'invalidOutputs', 'missingInputs']:
if 0 != len(jes[k]):
invalid_config = True
config_is_valid = False
break
return invalid_config
return config_is_valid


def restore_workflow_config(ns: str, ws: str, workflow_name: str, old_config: dict,
Expand Down

0 comments on commit 4b82a84

Please sign in to comment.