From c523448420fe2038823de7d63746c093334a3672 Mon Sep 17 00:00:00 2001 From: rallytime Date: Tue, 3 Feb 2015 11:15:45 -0700 Subject: [PATCH] Python 3 compatability for schedule.py --- salt/utils/schedule.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/salt/utils/schedule.py b/salt/utils/schedule.py index dd7bd8c5b5..6f5320754a 100644 --- a/salt/utils/schedule.py +++ b/salt/utils/schedule.py @@ -233,6 +233,7 @@ from salt.utils.process import os_is_running # Import 3rd-party libs import yaml import salt.ext.six as six + # pylint: disable=import-error try: import dateutil.parser as dateutil_parser @@ -522,7 +523,7 @@ class Schedule(object): argspec = salt.utils.args.get_function_argspec(self.functions[func]) if argspec.keywords: # this function accepts **kwargs, pack in the publish data - for key, val in ret.iteritems(): + for key, val in six.iteritems(ret): kwargs['__pub_{0}'.format(key)] = val try: