Skip to content

Commit

Permalink
Update scripts/* to explicitly reference Python 3
Browse files Browse the repository at this point in the history
Since the master branch no longer supports Python 2, and many distros
still default /usr/bin/python to Python 2, this commit changes the
scripts to explicitly call Python 3.
  • Loading branch information
terminalmage authored and dwoz committed May 7, 2020
1 parent 680abe9 commit bb03f4a
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion scripts/salt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Publish commands to the salt system from the command line on the master.
"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-api
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Import salt libs
from salt.scripts import salt_api
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-call
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Directly call a salt command in the modules, does not require a running salt
minion to run.
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-cloud
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Publish commands to the salt system from the command line on the master.
"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-cp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Publish commands to the salt system from the command line on the master.
"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-extend
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Quickstart for creating an/or extending the functionality of your SaltStack installation
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-key
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Manage the authentication keys with salt-key
"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-master
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Start the salt-master
"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-minion
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
This script is used to kick off a salt minion daemon
"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-proxy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This script is used to kick off a salt proxy minion daemon
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Execute a salt convenience routine
"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-ssh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Execute the salt ssh system
"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-syndic
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
This script is used to kick off a salt syndic daemon
"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/salt-unity
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from salt.scripts import salt_unity

Expand Down
2 changes: 1 addition & 1 deletion scripts/spm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Publish commands to the salt system from the command line on the master.
Expand Down

0 comments on commit bb03f4a

Please sign in to comment.