コード例 #1
0
def list_opts():
    # Castellan library also has a group name key_manager. So if
    # we append list returned from Castellan to this list, oslo will remove
    # one group as duplicate and only one group (either from this file or
    # Castellan library) will show up. So fix is to merge options of same
    # group name from this file and Castellan library
    opts = {key_manager_group.name: key_manager_opts}
    for group, options in castellan_opts.list_opts():
        if group not in opts.keys():
            opts[group] = options
        else:
            opts[group] = opts[group] + options
    return opts
コード例 #2
0
ファイル: key_manager.py プロジェクト: Juniper/nova
def list_opts():
    # Castellan library also has a group name key_manager. So if
    # we append list returned from Castellan to this list, oslo will remove
    # one group as duplicate and only one group (either from this file or
    # Castellan library) will show up. So fix is to merge options of same
    # group name from this file and Castellan library
    opts = {key_manager_group.name: key_manager_opts}
    for group, options in castellan_opts.list_opts():
        if group not in opts.keys():
            opts[group] = options
        else:
            opts[group] = opts[group] + options
    return opts
コード例 #3
0
ファイル: barbican.py プロジェクト: Violet-Guo/nova
def list_opts():
    # Castellan library also has a group name barbican. So if we append
    # list returned from barbican to this list, oslo will remove one group as
    # duplicate and only one group (either from this file or Castellan library)
    # will show up.
    # So fix is to merge options of this file to "barbican" group returned from
    # Castellan
    opts = {barbican_group.name: barbican_opts}
    for group, options in castellan_opts.list_opts():
        if group not in opts.keys():
            opts[group] = options
        else:
            opts[group] = opts[group] + options
    return opts
コード例 #4
0
def list_opts():
    # Castellan library also has a group name barbican. So if we append
    # list returned from barbican to this list, oslo will remove one group as
    # duplicate and only one group (either from this file or Castellan library)
    # will show up.
    # So fix is to merge options of this file to "barbican" group returned from
    # Castellan
    opts = {barbican_group.name: barbican_opts}
    for group, options in castellan_opts.list_opts():
        if group not in opts.keys():
            opts[group] = options
        else:
            opts[group] = opts[group] + options
    return opts