Py3 compatibility fixes

This commit is contained in:
Pedro Algarvio 2014-11-22 10:41:51 +00:00
parent aa5eaea4e3
commit 56840f9a08

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#/usr/bin/env python
'''
The minionswarm script will start a group of salt minions with different ids
on a single system to test scale capabilities
@ -23,6 +23,8 @@ import salt
# Import third party libs
import yaml
import salt.ext.six as six
from salt.ext.six.moves import range # pylint: disable=import-error,redefined-builtin
def parse():
@ -96,7 +98,7 @@ def parse():
opts = {}
for key, val in options.__dict__.items():
for key, val in six.iteritems(options.__dict__):
opts[key] = val
return opts