Fix syntax error when running tools with py3

Trivial issue where print is now a function and therefore
needs () to avoid a syntax error.

Change-Id: Iad083874ac14e0bee19134a7b46b10d29945987c
This commit is contained in:
Sean McGinnis 2018-02-19 16:39:41 -06:00
parent 1c659c246d
commit d45f2d4627
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ fi
setup_temp_space inactive-project-report setup_temp_space inactive-project-report
# Figure out the current series from the releases directory. # Figure out the current series from the releases directory.
current_series=$(python -c 'import openstack_releases.defaults; print openstack_releases.defaults.RELEASE') current_series=$(python -c 'import openstack_releases.defaults; print(openstack_releases.defaults.RELEASE)')
if [ -z "$current_series" ]; then if [ -z "$current_series" ]; then
echo "Could not determine the current release series." echo "Could not determine the current release series."
exit 1 exit 1

View File

@ -15,7 +15,7 @@ if [[ -z "$VIRTUAL_ENV" ]]; then
fi fi
# Figure out the current series from the releases directory. # Figure out the current series from the releases directory.
current_series=$(python -c 'import openstack_releases.defaults; print openstack_releases.defaults.RELEASE') current_series=$(python -c 'import openstack_releases.defaults; print(openstack_releases.defaults.RELEASE)')
if [ -z "$current_series" ]; then if [ -z "$current_series" ]; then
echo "Could not determine the current release series." echo "Could not determine the current release series."
exit 1 exit 1