예제 #1
0
def check_plugin_name_exists(name):
    if name not in [p.name for p in api.get_plugins()]:
        raise ex.InvalidReferenceException(_("Sahara doesn't contain plugin with name '%s'") % name)
예제 #2
0
def plugins_list():
    return u.render(plugins=[p.dict for p in api.get_plugins()])
예제 #3
0
파일: base.py 프로젝트: stackhpc/sahara
def check_plugin_name_exists(name):
    if name not in [p.name for p in api.get_plugins()]:
        raise ex.InvalidReferenceException(
            _("Sahara doesn't contain plugin with name '%s'") % name)
예제 #4
0
파일: v10.py 프로젝트: Imperat/sahara
def plugins_list():
    return u.render(plugins=[p.dict for p in api.get_plugins()])