def set_inventory_base_uri_default(config, opts):
    if 'inventory_base_uri' in opts:
        return

    base_roots = config.get('file_roots', {}).get('base', [])
    if len(base_roots) > 0:
        opts['inventory_base_uri'] = base_roots[0]
dataset/ETHPy150Open saltstack/salt/salt/utils/reclass.py/set_inventory_base_uri_default/original