コード例 #1
0
ファイル: sync.py プロジェクト: AsherBond/opennode-knot
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
コード例 #2
0
ファイル: compute.py プロジェクト: murisfurder/opennode-knot
def any_stack_installed(context):
    return IManageable.providedBy(context)
コード例 #3
0
ファイル: sync.py プロジェクト: opennode/opennode-knot
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
コード例 #4
0
ファイル: compute.py プロジェクト: opennode/opennode-knot
def any_stack_installed(context):
    return IManageable.providedBy(context)