[pre-commit] Fix execute and shebang lines
This commit removes the execute bit from several files and remove the shebang lines from the devstack plugin. While the devstack plugin is written in bash, it is not an executable script. The devstack plugin is sourced by devstack as needed, as such it is not executed in a subshell and the #!/bin/bash lines are not used even when present. Change-Id: I82ca22b7a47bf267fe6cf11f3e3519510108c146
This commit is contained in:
parent
c5edad2246
commit
5fadd0de57
@ -16,10 +16,8 @@ repos:
|
||||
files: .*\.json$
|
||||
- id: check-yaml
|
||||
files: .*\.(yaml|yml)$
|
||||
# FIXME(sean-k-mooney): we currently have some files
|
||||
# with incorrect permission, resolve this in a follow up
|
||||
# - id: check-executables-have-shebangs
|
||||
# - id: check-shebang-scripts-are-executable
|
||||
- id: check-executables-have-shebangs
|
||||
- id: check-shebang-scripts-are-executable
|
||||
# git
|
||||
- id: check-added-large-files
|
||||
- id: check-case-conflict
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# lib/watcher
|
||||
# Functions to control the configuration and operation of the watcher services
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# plugin.sh - DevStack plugin script to install watcher
|
||||
|
||||
# Save trace setting
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# ``upgrade-watcher``
|
||||
|
||||
function configure_watcher_upgrade {
|
||||
|
0
watcher/applier/default.py
Executable file → Normal file
0
watcher/applier/default.py
Executable file → Normal file
0
watcher/common/clients.py
Executable file → Normal file
0
watcher/common/clients.py
Executable file → Normal file
0
watcher/conf/__init__.py
Executable file → Normal file
0
watcher/conf/__init__.py
Executable file → Normal file
0
watcher/conf/ironic_client.py
Executable file → Normal file
0
watcher/conf/ironic_client.py
Executable file → Normal file
0
watcher/conf/nova_client.py
Executable file → Normal file
0
watcher/conf/nova_client.py
Executable file → Normal file
0
watcher/decision_engine/strategy/strategies/base.py
Executable file → Normal file
0
watcher/decision_engine/strategy/strategies/base.py
Executable file → Normal file
0
watcher/tests/applier/action_plan/test_default_action_handler.py
Executable file → Normal file
0
watcher/tests/applier/action_plan/test_default_action_handler.py
Executable file → Normal file
0
watcher/tests/common/test_clients.py
Executable file → Normal file
0
watcher/tests/common/test_clients.py
Executable file → Normal file
0
watcher/tests/conf/test_list_opts.py
Executable file → Normal file
0
watcher/tests/conf/test_list_opts.py
Executable file → Normal file
0
watcher/tests/decision_engine/strategy/strategies/test_host_maintenance.py
Executable file → Normal file
0
watcher/tests/decision_engine/strategy/strategies/test_host_maintenance.py
Executable file → Normal file
Loading…
Reference in New Issue
Block a user