From c2c0edfae4d4490fb566bdfc7037bed75c51521b Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 22 Nov 2022 14:20:46 +1100 Subject: [PATCH] gitea-git-repos: remove #!/usr/bin/env python A change in Ansible 6, discussed at [1], highlights that Ansible is using the #! line to determine using it's own heuristics the interpreter to use to run the file, rather than the more common idea that this file is being interpreted by the kernel. The best solution seems to be to have no interpreter line, which is done here. To avoid confusion this removes the executable bit; if you want to run it manually you should run it under the python binary as an argument. I couldn't find any other instances of this same behaviour in system-config. [1] https://github.com/ansible/ansible/issues/78809 [1] https://github.com/ansible/ansible/commit/9142be2f6cabbe6597c9254c5bb9186d17036d55 [2] https://opendev.org/zuul/zuul-jobs/commit/9e22cfdb0f0301fbff70c766e99f1d75490aaf37 Change-Id: I1d37e485a877982c72fa19acad907b682858c15b --- playbooks/roles/gitea-git-repos/library/gitea_create_repos.py | 2 -- 1 file changed, 2 deletions(-) mode change 100755 => 100644 playbooks/roles/gitea-git-repos/library/gitea_create_repos.py diff --git a/playbooks/roles/gitea-git-repos/library/gitea_create_repos.py b/playbooks/roles/gitea-git-repos/library/gitea_create_repos.py old mode 100755 new mode 100644 index 119dcfb314..fb643d7d42 --- a/playbooks/roles/gitea-git-repos/library/gitea_create_repos.py +++ b/playbooks/roles/gitea-git-repos/library/gitea_create_repos.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # Copyright 2019 Red Hat, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); you may