From 247438dd5ac4a9cffc2c24cda1a3052f6d761775 Mon Sep 17 00:00:00 2001 From: yatin Date: Wed, 23 May 2018 20:46:38 +0530 Subject: [PATCH] Use /usr/bin/env python to autodetect python https://review.openstack.org/#/c/564024/ used /bin/python as the shebang but this can be different for different platforms, switch to /usr/bin/env to handle it. Also update undercloud_ctlplane_network.py to use /usr/bin/env for consistency, although this file is not executable. Change-Id: Id915ded03ae5a471ffa2dca13e2da90021279f63 --- extraconfig/post_deploy/undercloud_ctlplane_network.py | 2 +- extraconfig/tasks/instanceha/check-run-nova-compute | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extraconfig/post_deploy/undercloud_ctlplane_network.py b/extraconfig/post_deploy/undercloud_ctlplane_network.py index 8f8671aed2..c85aabd2e0 100644 --- a/extraconfig/post_deploy/undercloud_ctlplane_network.py +++ b/extraconfig/post_deploy/undercloud_ctlplane_network.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import json import netaddr diff --git a/extraconfig/tasks/instanceha/check-run-nova-compute b/extraconfig/tasks/instanceha/check-run-nova-compute index f44c5a1a9e..a33cdf719c 100755 --- a/extraconfig/tasks/instanceha/check-run-nova-compute +++ b/extraconfig/tasks/instanceha/check-run-nova-compute @@ -1,4 +1,4 @@ -#!/bin/python -utt +#!/usr/bin/env python -utt import os import sys