Py3 compatibility fixes

This commit is contained in:
Pedro Algarvio 2014-11-21 02:50:01 +00:00
parent 268788bbff
commit fb056b41c8

View File

@ -4,8 +4,7 @@ Execute batch runs
'''
# Import python libs
from __future__ import print_function
from __future__ import absolute_import
from __future__ import absolute_import, print_function
import math
import time
import copy
@ -15,7 +14,12 @@ import salt.client
import salt.output
import salt.utils.minions
from salt.utils import print_cli
# Import 3rd-party libs
# pylint: disable=import-error,no-name-in-module,redefined-builtin
import salt.ext.six as six
from salt.ext.six.moves import range
# pylint: disable=import-error,no-name-in-module,redefined-builtin
class Batch(object):
@ -151,7 +155,7 @@ class Batch(object):
parts[minion] = {}
parts[minion]['ret'] = {}
for minion, data in parts.items():
for minion, data in six.iteritems(parts):
active.remove(minion)
if self.opts.get('raw'):
yield data