2
0
Fork 0

Fix E602 Don't compare to empty string

This commit is contained in:
Jeremy Gardais 2019-02-27 14:11:20 +01:00
parent 713656d0ad
commit 46e20669ff
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 5 additions and 4 deletions

View File

@ -2,6 +2,7 @@
### Fix
* Fix E405 Remote package tasks should have a retry.
* Fix E602 Don't compare to empty string.
## v1.0.1

View File

@ -20,8 +20,8 @@
deb: '{{ fusioninventory__agent_package_url }}'
register: pkg_agent_url_result
until: pkg_agent_url_result is success
when: fusioninventory__agent_package_url != ""
and fusioninventory__agent_deploy_state == "present"
when: ((fusioninventory__agent_package_url) and
(fusioninventory__agent_deploy_state == "present"))
- name: Ensure fusioninventory-agent package from REPOS
package:
@ -30,8 +30,8 @@
else "absent" }}'
register: pkg_agent_repo_result
until: pkg_agent_repo_result is success
when: fusioninventory__agent_package_url == ""
or fusioninventory__agent_deploy_state == "absent"
when: ((not fusioninventory__agent_package_url) or
(fusioninventory__agent_deploy_state == "absent"))
# Manage agent configuration file [[[1
- name: Create Fusioninventory-agent configuration