Skip to content

Commit

Permalink
Add python3 compat boilerplate to executor
Browse files Browse the repository at this point in the history
  • Loading branch information
abadger committed Oct 15, 2014
1 parent c9abd0f commit ff8042c
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 1 deletion.
4 changes: 4 additions & 0 deletions v2/ansible/executor/HostLog.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

class HostLog(object):

def __init__(self, host):
Expand Down
6 changes: 5 additions & 1 deletion v2/ansible/executor/HostLogManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

class HostLogManager(object):
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

class HostLogManager:

def __init__(self):
pass
Expand Down
4 changes: 4 additions & 0 deletions v2/ansible/executor/HostPlaybookIterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

class HostPlaybookIterator(object):

def __init__(self, host, playbook):
Expand Down
4 changes: 4 additions & 0 deletions v2/ansible/executor/PlaybookExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

class PlaybookExecutor(object):

def __init__(self, list_of_plays=[]):
Expand Down
4 changes: 4 additions & 0 deletions v2/ansible/executor/TaskExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

class TaskExecutor(object):

def __init__(self, task, host):
Expand Down
4 changes: 4 additions & 0 deletions v2/ansible/executor/TaskQueueManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

class TaskQueueManagerHostPlaybookIterator(object):

def __init__(self, host, playbook):
Expand Down
5 changes: 5 additions & 0 deletions v2/ansible/executor/TaskResult.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

5 changes: 5 additions & 0 deletions v2/ansible/executor/TemplateEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

5 changes: 5 additions & 0 deletions v2/ansible/executor/VariableCache.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

5 changes: 5 additions & 0 deletions v2/ansible/executor/VariableManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

0 comments on commit ff8042c

Please sign in to comment.