From 59321f0438eb406ca9e5170d1f55d941d2f0f74b Mon Sep 17 00:00:00 2001 From: Erich Cordoba Date: Sun, 8 Sep 2019 09:50:54 -0500 Subject: [PATCH] Remove not needed shebangs in sm_client The linters in the Opensuse build service are failing because sm_client has unneeded python shebangs in the code. This is because a python source code file that is not intended to be executed shouldn't include this shebang. Also, the linter fails as `/usr/bin/env python` is used causing that the dependency discovery tool fails. It is safe to use `/usr/bin/python` as currently we don't provide any other python version. Story: 2006508 Task: 36647 Change-Id: If3f83b9562414c3392515828a3c716a5bc23015d Signed-off-by: Erich Cordoba --- .../sm-client/sm_client/openstack/common/config/generator.py | 1 - .../sm-client/sm_client/openstack/common/rootwrap/cmd.py | 1 - service-mgmt-client/sm-client/sm_client/v1/__init__.py | 1 - service-mgmt-client/sm-client/sm_client/v1/smc_service.py | 1 - service-mgmt-client/sm-client/sm_client/v1/smc_service_node.py | 1 - .../sm-client/sm_client/v1/smc_service_node_shell.py | 1 - service-mgmt-client/sm-client/sm_client/v1/smc_service_shell.py | 1 - service-mgmt-client/sm-client/sm_client/v1/smc_servicegroup.py | 1 - .../sm-client/sm_client/v1/smc_servicegroup_shell.py | 1 - service-mgmt-client/sm-client/usr/bin/smc | 2 +- 10 files changed, 1 insertion(+), 10 deletions(-) diff --git a/service-mgmt-client/sm-client/sm_client/openstack/common/config/generator.py b/service-mgmt-client/sm-client/sm_client/openstack/common/config/generator.py index af18d53b..6d12e6ee 100644 --- a/service-mgmt-client/sm-client/sm_client/openstack/common/config/generator.py +++ b/service-mgmt-client/sm-client/sm_client/openstack/common/config/generator.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 SINA Corporation diff --git a/service-mgmt-client/sm-client/sm_client/openstack/common/rootwrap/cmd.py b/service-mgmt-client/sm-client/sm_client/openstack/common/rootwrap/cmd.py index 2066ce62..4a1c5954 100644 --- a/service-mgmt-client/sm-client/sm_client/openstack/common/rootwrap/cmd.py +++ b/service-mgmt-client/sm-client/sm_client/openstack/common/rootwrap/cmd.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2011 OpenStack Foundation. diff --git a/service-mgmt-client/sm-client/sm_client/v1/__init__.py b/service-mgmt-client/sm-client/sm_client/v1/__init__.py index 17d0614c..ada7b393 100644 --- a/service-mgmt-client/sm-client/sm_client/v1/__init__.py +++ b/service-mgmt-client/sm-client/sm_client/v1/__init__.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Red Hat, Inc. diff --git a/service-mgmt-client/sm-client/sm_client/v1/smc_service.py b/service-mgmt-client/sm-client/sm_client/v1/smc_service.py index 1317eefb..02611ff9 100644 --- a/service-mgmt-client/sm-client/sm_client/v1/smc_service.py +++ b/service-mgmt-client/sm-client/sm_client/v1/smc_service.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (c) 2018 Wind River Systems, Inc. diff --git a/service-mgmt-client/sm-client/sm_client/v1/smc_service_node.py b/service-mgmt-client/sm-client/sm_client/v1/smc_service_node.py index f7bb9e25..4eb6ef0f 100644 --- a/service-mgmt-client/sm-client/sm_client/v1/smc_service_node.py +++ b/service-mgmt-client/sm-client/sm_client/v1/smc_service_node.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # diff --git a/service-mgmt-client/sm-client/sm_client/v1/smc_service_node_shell.py b/service-mgmt-client/sm-client/sm_client/v1/smc_service_node_shell.py index 66444f9f..8b603d6c 100644 --- a/service-mgmt-client/sm-client/sm_client/v1/smc_service_node_shell.py +++ b/service-mgmt-client/sm-client/sm_client/v1/smc_service_node_shell.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # diff --git a/service-mgmt-client/sm-client/sm_client/v1/smc_service_shell.py b/service-mgmt-client/sm-client/sm_client/v1/smc_service_shell.py index a3c82bf6..ce36f89d 100644 --- a/service-mgmt-client/sm-client/sm_client/v1/smc_service_shell.py +++ b/service-mgmt-client/sm-client/sm_client/v1/smc_service_shell.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # diff --git a/service-mgmt-client/sm-client/sm_client/v1/smc_servicegroup.py b/service-mgmt-client/sm-client/sm_client/v1/smc_servicegroup.py index a05f12c2..add1d67c 100644 --- a/service-mgmt-client/sm-client/sm_client/v1/smc_servicegroup.py +++ b/service-mgmt-client/sm-client/sm_client/v1/smc_servicegroup.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # diff --git a/service-mgmt-client/sm-client/sm_client/v1/smc_servicegroup_shell.py b/service-mgmt-client/sm-client/sm_client/v1/smc_servicegroup_shell.py index 44e9702d..511e280d 100644 --- a/service-mgmt-client/sm-client/sm_client/v1/smc_servicegroup_shell.py +++ b/service-mgmt-client/sm-client/sm_client/v1/smc_servicegroup_shell.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # diff --git a/service-mgmt-client/sm-client/usr/bin/smc b/service-mgmt-client/sm-client/usr/bin/smc index 1b918a76..8b6b1610 100644 --- a/service-mgmt-client/sm-client/usr/bin/smc +++ b/service-mgmt-client/sm-client/usr/bin/smc @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # #