(operator_client, hostnames)
return down_output
Marks the specified hostnames as being down for maintenance, and makes them unavailable for use.
    :param hostnames: a list of hostnames
    :returns: None
Marks the specified hostnames as being down for maintenance, and makes them unavailable for use.
    :param hostnames: a list of hostnames
    :returns: None
Marks the specified hostnames as being down for maintenance and makes them unavailable for use . : param hostnames : a list of hostnames : returns : None
def down(operator_client, hostnames):
    """Marks the specified hostnames as being down for maintenance, and makes them unavailable for use.
    :param hostnames: a list of hostnames
    :returns: None
    """
    log.info("Bringing down: %s" % hostnames)
    payload = build_maintenance_payload(hostnames, "start_maintenance")
    try:
        down_output = operator_client(data=payload).text
    except HTTPError:
        raise HTTPError("Error performing maintenance down.")
    return down_output
def down ( operator_client , hostnames ) : log . info ( "Bringing down: %s" % hostnames ) payload = build_maintenance_payload ( hostnames , "start_maintenance" ) try : down_output = operator_client ( data = payload ) . text except HTTPError : raise HTTPError ( "Error performing maintenance down." ) return down_output