コード例 #1
0
ファイル: views.py プロジェクト: fabregas/old_projects
def synchronize_node(hostname, user_name):
    client = DBUSInterfaceClient()

    return client.call_nodes_operation(user_name, [hostname], "SYNC", [])
コード例 #2
0
ファイル: views.py プロジェクト: fabregas/old_projects
def reboot_node(hostname, user_name):
    client = DBUSInterfaceClient()

    return client.call_nodes_operation(user_name, [hostname], "REBOOT", [])