Ejemplo n.º 1
0
def get_manageable_machines():
    oms_root = db.get_root()['oms_root']
    machines = map(follow_symlinks, oms_root['machines'].listcontent())
    res = [(m, m.hostname) for m in machines
           if ICompute.providedBy(m) and IManageable.providedBy(m)]
    return res
Ejemplo n.º 2
0
def any_stack_installed(context):
    return IManageable.providedBy(context)
Ejemplo n.º 3
0
def get_manageable_machines():
    oms_root = db.get_root()['oms_root']
    machines = map(follow_symlinks, oms_root['machines'].listcontent())
    res = [(m, m.hostname) for m in machines
           if ICompute.providedBy(m) and IManageable.providedBy(m)]
    return res
Ejemplo n.º 4
0
def any_stack_installed(context):
    return IManageable.providedBy(context)