Task "Get jenkins webhook" fails even when not supposed to be executed
Closed this issue · 1 comments
pymhd commented
SUMMARY
When i am not using jenkins webhook at all (sonar_set_jenkins_webhook = false) set_fact from
Jenkins webhook block is still running and fails
ISSUE TYPE
- Bug Report
COMPONENT NAME
ANSIBLE VERSION
ansible 2.8.5
config file = None
configured module search path = ['/Users/mhd/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.7.4 (default, Jul 9 2019, 18:13:23) [Clang 10.0.1 (clang-1001.0.46.4)]
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Just run role with sonar_set_jenkins_webhook = false
EXPECTED RESULTS
ACTUAL RESULTS
TASK [../roles/lean_delivery.sonarqube : Get jenkins webhook key] ****************************************************************************************************************************************************************************
fatal: [10.130.119.156]: FAILED! => {"msg": "Invalid data passed to 'loop', it requires a list, got this instead: . Hint: If you passed a list/dict of just one element, try adding wantlist=True to your lookup invocation or use q/query instead of lookup."}
dzmitry-rudnouski commented
Fixed in #539