summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Borean <jborean93@gmail.com>2020-10-08 01:07:27 +1000
committerGitHub <noreply@github.com>2020-10-07 10:07:27 -0500
commit1ae3683d0c49c84a0df60d3aa176065c783c078b (patch)
treeb6ffedb988483107fff74ba725f85b1488cb11a6
parentcfa41898c4c1b349acd3d8d54018a5cc7571dcbc (diff)
downloadansible-1ae3683d0c49c84a0df60d3aa176065c783c078b.tar.gz
Fix example to use correct shebang (#72129)
* Fix example to use correct shebang * Fix other example modules as well * Ignore shebang test
-rw-r--r--examples/scripts/my_test.py2
-rw-r--r--examples/scripts/my_test_facts.py2
-rw-r--r--examples/scripts/my_test_info.py2
-rw-r--r--test/sanity/ignore.txt3
4 files changed, 6 insertions, 3 deletions
diff --git a/examples/scripts/my_test.py b/examples/scripts/my_test.py
index 3363fc1aa5..16aac8934d 100644
--- a/examples/scripts/my_test.py
+++ b/examples/scripts/my_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# Copyright: (c) 2018, Terry Jones <terry.jones@example.org>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
diff --git a/examples/scripts/my_test_facts.py b/examples/scripts/my_test_facts.py
index 8484e3c374..555f878efb 100644
--- a/examples/scripts/my_test_facts.py
+++ b/examples/scripts/my_test_facts.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# Copyright: (c) 2020, Your Name <YourName@example.org>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
diff --git a/examples/scripts/my_test_info.py b/examples/scripts/my_test_info.py
index 7db3edda28..64da3c7b8a 100644
--- a/examples/scripts/my_test_info.py
+++ b/examples/scripts/my_test_info.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# Copyright: (c) 2020, Your Name <YourName@example.org>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
diff --git a/test/sanity/ignore.txt b/test/sanity/ignore.txt
index 130a751b50..0a831729e9 100644
--- a/test/sanity/ignore.txt
+++ b/test/sanity/ignore.txt
@@ -1,5 +1,8 @@
docs/docsite/rst/dev_guide/testing/sanity/no-smart-quotes.rst no-smart-quotes
examples/play.yml shebang
+examples/scripts/my_test.py shebang # example module but not in a normal module location
+examples/scripts/my_test_facts.py shebang # example module but not in a normal module location
+examples/scripts/my_test_info.py shebang # example module but not in a normal module location
examples/scripts/ConfigureRemotingForAnsible.ps1 pslint:PSCustomUseLiteralPath
examples/scripts/upgrade_to_ps3.ps1 pslint:PSCustomUseLiteralPath
examples/scripts/upgrade_to_ps3.ps1 pslint:PSUseApprovedVerbs