示例#1
0
文件: ports.py 项目: willmurnane/salt
def _repack_options(options):
    '''
    Repack the options data
    '''
    return dict([(str(x), _normalize(y))
                 for x, y in six.iteritems(salt.utils.repack_dictlist(options))
                 ])
示例#2
0
文件: ports.py 项目: bebehei/salt
def _repack_options(options):
    """
    Repack the options data
    """
    return dict([
        (six.text_type(x), _normalize(y))
        for x, y in six.iteritems(salt.utils.data.repack_dictlist(options))
    ])
示例#3
0
文件: ports.py 项目: steverweber/salt
def _repack_options(options):
    """
    Repack the options data
    """
    return {
        str(x): _normalize(y)
        for x, y in salt.utils.data.repack_dictlist(options).items()
    }
示例#4
0
文件: ports.py 项目: 1mentat/salt
def _repack_options(options):
    '''
    Repack the options data
    '''
    return dict(
        [
            (str(x), _normalize(y))
            for x, y in salt.utils.repack_dictlist(options).iteritems()
        ]
    )