Blame 0501-Revert-Drop-shebang-line-from-openstack-console.patch

1d62151
From 1a72d8927d8b2e3ab6789407d5dee4345777373f Mon Sep 17 00:00:00 2001
1d62151
From: Neal Gompa <ngompa13@gmail.com>
1d62151
Date: Mon, 18 Nov 2019 00:39:15 -0500
1d62151
Subject: [PATCH] Revert "Drop shebang line from openstack-console"
1d62151
1d62151
This is a bad fix to this problem. It's just better to
1d62151
force it to Python 3 in this case.
1d62151
1d62151
This reverts commit e4809dbb4fdedac89c1e0b1f86bd02478e12007f.
1d62151
---
1d62151
 build-vm-openstack | 2 +-
1d62151
 openstack-console  | 2 ++
1d62151
 2 files changed, 3 insertions(+), 1 deletion(-)
1d62151
1d62151
diff --git a/build-vm-openstack b/build-vm-openstack
1d62151
index 2bc4527..54bbd1c 100644
1d62151
--- a/build-vm-openstack
1d62151
+++ b/build-vm-openstack
1d62151
@@ -270,7 +270,7 @@ vm_startup_openstack() {
1d62151
         sleep 1
1d62151
     done
1d62151
 
1d62151
-    if ! python $BUILD_DIR/openstack-console "${WS_URL}" ; then
1d62151
+    if ! $BUILD_DIR/openstack-console "${WS_URL}" ; then
1d62151
         $NOVACLIENT delete $OPENSTACK_BUILD_ID
1d62151
         cleanup_and_exit 3
1d62151
     else
1d62151
diff --git a/openstack-console b/openstack-console
1d62151
index 0a11141..3565f9e 100644
1d62151
--- a/openstack-console
1d62151
+++ b/openstack-console
1d62151
@@ -1,3 +1,5 @@
1d62151
+#!/usr/bin/python
1d62151
+
1d62151
 ################################################################
1d62151
 #
1d62151
 # Copyright (c) 2017 SUSE Linux Products GmbH
1d62151
-- 
1d62151
2.21.0
1d62151