By default, ubuntu trusty images has python3 executable in
path, but we can't use that for executing loguserdata script,
because pkg_resources can't be imported. Now it's proposed to
try importing pkg_resources for validating readiness of
python3 for executing this script. If pkg_resources can't be
imported there is no other choice except using python2.
Reviewed: https:/ /review. openstack. org/360804 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=f95a8051ca2 48044cb1655b19e f22b94a2c337ff
Committed: https:/
Submitter: Jenkins
Branch: master
commit f95a8051ca24804 4cb1655b19ef22b 94a2c337ff
Author: Vitaly Gridnev <email address hidden>
Date: Fri Aug 26 01:05:51 2016 +0300
Validate that python3 is ready for loguserdata
By default, ubuntu trusty images has python3 executable in
path, but we can't use that for executing loguserdata script,
because pkg_resources can't be imported. Now it's proposed to
try importing pkg_resources for validating readiness of
python3 for executing this script. If pkg_resources can't be
imported there is no other choice except using python2.
Change-Id: Icb4f5863001687 4eb40dd77590469 fc5de6287e4
Closes-bug: 1617069