Fix bug finding pip install method
An fatal error results due to the install script search '.find' not existing on the dict result of the install script check task. Instead the .find should be searching the stdout key of the install script check task results dict. Ie. .find() is a string search, not a dict search. The following fatal error results when using .find() on the dict: The conditional check 'pip_install_script.find('get-pip.py') != -1' failed. The error was: error while evaluating conditional (pip_install_script.find('get-pip.py') != -1): 'dict object' has no attribute 'find' Change-Id: I4b929d58057b3d249007fe7c563439ab65faf4ce
This commit is contained in:
parent
c177f96780
commit
2f586ab435
|
@ -35,6 +35,6 @@
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
- include_tasks: "install_{{ pip_offline_install | ternary('offline', 'online') }}.yml"
|
- include_tasks: "install_{{ pip_offline_install | ternary('offline', 'online') }}.yml"
|
||||||
when: pip_install_script.find('get-pip.py') != -1 # skip get-pip.py if a suitable pip is installed
|
when: pip_install_script.stdout.find('get-pip.py') != -1 # skip get-pip.py if a suitable pip is installed
|
||||||
|
|
||||||
- include_tasks: install_source.yml
|
- include_tasks: install_source.yml
|
||||||
|
|
Loading…
Reference in New Issue