mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
update basestring -> string_types
This commit is contained in:
parent
d312ff2b85
commit
4ea8d04386
@ -29,6 +29,7 @@ _supported_dists += ('arch', 'mageia', 'meego', 'vmware', 'bluewhite64',
|
||||
import salt.log
|
||||
import salt.utils
|
||||
import salt.utils.network
|
||||
from salt._compat import string_types
|
||||
|
||||
# Solve the Chicken and egg problem where grains need to run before any
|
||||
# of the modules are loaded and are generally available for any usage.
|
||||
@ -293,7 +294,7 @@ def _bsd_cpudata(osdata):
|
||||
|
||||
grains = dict([(k, __salt__['cmd.run'](v)) for k, v in cmds.items()])
|
||||
|
||||
if 'cpu_flags' in grains and isinstance(grains['cpu_flags'], basestring):
|
||||
if 'cpu_flags' in grains and isinstance(grains['cpu_flags'], string_types):
|
||||
grains['cpu_flags'] = grains['cpu_flags'].split(' ')
|
||||
|
||||
if osdata['kernel'] == 'NetBSD':
|
||||
|
Loading…
Reference in New Issue
Block a user