def get_plugin_option(name, options):
    """
    Retrieve option name from options dict.
    :param options:
    :return:
    """
    for o in options:
        if o.get("name") == name:
            return o.get("value", o.get("default"))

    Retrieve option name from options dict.
    :param options:
    :return:
    
lemur/plugins/utils.py