Explorar el Código

Explicitely use python2

Some distributions are using python3 as the default python.
On those ones, we need to explicitely use python2.
Lénaïc Huard hace 10 años
padre
commit
c589981c50
Se han modificado 6 ficheros con 6 adiciones y 6 borrados
  1. 1 1
      bin/oscp
  2. 1 1
      bin/ossh
  3. 1 1
      inventory/aws/ec2.py
  4. 1 1
      inventory/gce/gce.py
  5. 1 1
      inventory/multi_ec2.py
  6. 1 1
      test/units/mutli_ec2_test.py

+ 1 - 1
bin/oscp

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # vim: expandtab:tabstop=4:shiftwidth=4
 # vim: expandtab:tabstop=4:shiftwidth=4
 
 
 import argparse
 import argparse

+ 1 - 1
bin/ossh

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # vim: expandtab:tabstop=4:shiftwidth=4
 # vim: expandtab:tabstop=4:shiftwidth=4
 
 
 import argparse
 import argparse

+ 1 - 1
inventory/aws/ec2.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 
 '''
 '''
 EC2 external inventory script
 EC2 external inventory script

+ 1 - 1
inventory/gce/gce.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2013 Google Inc.
 # Copyright 2013 Google Inc.
 #
 #
 # This file is part of Ansible
 # This file is part of Ansible

+ 1 - 1
inventory/multi_ec2.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # vim: expandtab:tabstop=4:shiftwidth=4
 # vim: expandtab:tabstop=4:shiftwidth=4
 
 
 from time import time
 from time import time

+ 1 - 1
test/units/mutli_ec2_test.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 
 import unittest
 import unittest
 import sys
 import sys