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]9142be2f6c
[2]9e22cfdb0f
Change-Id: I1d37e485a877982c72fa19acad907b682858c15b
This commit is contained in:
parent
ac55e08d05
commit
c2c0edfae4
2
playbooks/roles/gitea-git-repos/library/gitea_create_repos.py
Executable file → Normal file
2
playbooks/roles/gitea-git-repos/library/gitea_create_repos.py
Executable file → Normal file
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
#
|
|
||||||
# Copyright 2019 Red Hat, Inc
|
# Copyright 2019 Red Hat, Inc
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
Loading…
Reference in New Issue
Block a user