コード例 #1
0
ファイル: cleanup.py プロジェクト: openstack/fuel-octane
def clean_services_for_node(controller, node):
    services_stdout = nova.run_nova_cmd(
        ["nova", "service-list", "--host", node.data['hostname']],
        controller)
    services = nova.nova_stdout_parser(services_stdout)
    for service in services:
        nova.run_nova_cmd(
            ["nova", "service-delete", service['Id']], controller,
            output=False)
コード例 #2
0
def test_nova_stdout_parser(cmd_output, expected_result):
    assert expected_result == nova.nova_stdout_parser(cmd_output)