mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Making salt.modules.boto_elb python3 compatible
This commit is contained in:
parent
d589e9f7db
commit
eae1930cc4
1 changed files with 4 additions and 2 deletions
|
@ -33,10 +33,12 @@ Connection module for Amazon ELB
|
|||
|
||||
:depends: boto
|
||||
'''
|
||||
from __future__ import absolute_import
|
||||
|
||||
# Import Python libs
|
||||
import logging
|
||||
import json
|
||||
import six
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
@ -513,7 +515,7 @@ def register_instances(name, instances, region=None, key=None, keyid=None,
|
|||
'''
|
||||
# convert instances to list type, enabling consistent use of instances
|
||||
# variable throughout the register_instances method
|
||||
if isinstance(instances, str) or isinstance(instances, unicode):
|
||||
if isinstance(instances, str) or isinstance(instances, six.text_type):
|
||||
instances = [instances]
|
||||
conn = _get_conn(region, key, keyid, profile)
|
||||
if not conn:
|
||||
|
@ -556,7 +558,7 @@ def deregister_instances(name, instances, region=None, key=None, keyid=None,
|
|||
'''
|
||||
# convert instances to list type, enabling consistent use of instances
|
||||
# variable throughout the deregister_instances method
|
||||
if isinstance(instances, str) or isinstance(instances, unicode):
|
||||
if isinstance(instances, str) or isinstance(instances, six.text_type):
|
||||
instances = [instances]
|
||||
conn = _get_conn(region, key, keyid, profile)
|
||||
if not conn:
|
||||
|
|
Loading…
Add table
Reference in a new issue