From 85f6ec6ea3290ee4c1ea627a1f2ebb1fa56d2de4 Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Wed, 12 Jun 2019 15:27:07 -0700 Subject: [PATCH] fault: Clean-up /usr/bin/env instances The dependency resolver for RPM relies on the shebang to have the interperter that will be used in order to get things right, so change shebang to /usr/bin/python. In other cases, the shebang is not needed at all as these are not really executable python files, they are part of the python package. RPMLINT finds these and complains that a non-executable has a shebang. Change-Id: Ie90a846d6addffca1225e59fd8b6f3753d2991a4 Signed-off-by: Saul Wold --- fm-common/sources/fm_db_sync_event_suppression.py | 2 +- fm-doc/fm_doc/check_missing_alarms.py | 2 +- fm-rest-api/fm/fm/api/controllers/v1/collection.py | 1 - python-fmclient/fmclient/fmclient/common/options.py | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fm-common/sources/fm_db_sync_event_suppression.py b/fm-common/sources/fm_db_sync_event_suppression.py index 68bf464a..16777c63 100755 --- a/fm-common/sources/fm_db_sync_event_suppression.py +++ b/fm-common/sources/fm_db_sync_event_suppression.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # Copyright (c) 2016-2018 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 diff --git a/fm-doc/fm_doc/check_missing_alarms.py b/fm-doc/fm_doc/check_missing_alarms.py index 8d81638a..41e36816 100644 --- a/fm-doc/fm_doc/check_missing_alarms.py +++ b/fm-doc/fm_doc/check_missing_alarms.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # Copyright (c) 2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 diff --git a/fm-rest-api/fm/fm/api/controllers/v1/collection.py b/fm-rest-api/fm/fm/api/controllers/v1/collection.py index 51b794e4..a667874f 100644 --- a/fm-rest-api/fm/fm/api/controllers/v1/collection.py +++ b/fm-rest-api/fm/fm/api/controllers/v1/collection.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Red Hat, Inc. diff --git a/python-fmclient/fmclient/fmclient/common/options.py b/python-fmclient/fmclient/fmclient/common/options.py index cea260bf..0407cefa 100644 --- a/python-fmclient/fmclient/fmclient/common/options.py +++ b/python-fmclient/fmclient/fmclient/common/options.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain