From 1ae3683d0c49c84a0df60d3aa176065c783c078b Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Thu, 8 Oct 2020 01:07:27 +1000 Subject: [PATCH] Fix example to use correct shebang (#72129) * Fix example to use correct shebang * Fix other example modules as well * Ignore shebang test --- examples/scripts/my_test.py | 2 +- examples/scripts/my_test_facts.py | 2 +- examples/scripts/my_test_info.py | 2 +- test/sanity/ignore.txt | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/scripts/my_test.py b/examples/scripts/my_test.py index 3363fc1aa53..16aac8934dc 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 # 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 8484e3c3743..555f878efb4 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 # 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 7db3edda281..64da3c7b8a8 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 # 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 130a751b501..0a831729e98 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