Use py2 shebang for centos distro installs

Since CentOS 7 do not have packaged swift library for py3, py2 shebang
should be used in python script so that they could import libraries

Change-Id: If42feb0bb3ed0de211e5fba65c59d9ef50d199ce
This commit is contained in:
Dmitriy Rabotyagov 2020-01-31 18:03:46 +02:00 committed by Dmitriy Rabotyagov (noonedeadpunk)
parent 1e6cc45d97
commit 1993c6e4a7
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!{{ swift_bin }}/{{ swift_venv_python_executable }}
#!{{ swift_bin }}/{{ (swift_install_method == 'distro' and ansible_os_family | lower == 'redhat' and ansible_distribution_major_version is version('7', '<=')) | ternary('python', swift_venv_python_executable) }}
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,4 +1,4 @@
#!{{ swift_bin }}/{{ swift_venv_python_executable }}
#!{{ swift_bin }}/{{ (swift_install_method == 'distro' and ansible_os_family | lower == 'redhat' and ansible_distribution_major_version is version('7', '<=')) | ternary('python', swift_venv_python_executable) }}
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");