Skip to content

Commit

Permalink
Update create_data_context.yml task list failed_when logic
Browse files Browse the repository at this point in the history
Signed-off-by: Webster Mudge <[email protected]>
  • Loading branch information
wmudge committed Sep 12, 2024
1 parent f64ce9b commit 0acb3e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/deployment/cluster/tasks/create_data_context.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
loop_var: data_context
register: result
failed_when:
- result.status != 200
- "'already exists' not in result.json.message | default('')"
- "{{ (result | map(attribute='results') | map(attribute='status') | reject('eq', 200) | length) > 0 }}"
- "{{ (result | map(attribute='results') | map(attribute='json') | map(attribute='message') | reject('regex', 'already exists') | length) > 0 }}"
when:
- cluster.data_contexts is iterable
- "'HDFS' in cluster.services"

0 comments on commit 0acb3e7

Please sign in to comment.