(hostnames, maint_type)
return {
        "type": maint_type.upper(),
        maint_type.lower(): {"machines": get_machine_ids(hostnames)},
    }
Creates the JSON payload necessary to bring the specified hostnames up/down for maintenance.
    :param hostnames: a list of hostnames
    :returns: a dictionary representing the list of machines to bring up/down for maintenance
Creates the JSON payload necessary to bring the specified hostnames up/down for maintenance.
    :param hostnames: a list of hostnames
    :returns: a dictionary representing the list of machines to bring up/down for maintenance
Creates the JSON payload necessary to bring the specified hostnames up / down for maintenance . : param hostnames : a list of hostnames : returns : a dictionary representing the list of machines to bring up / down for maintenance
def build_maintenance_payload(hostnames, maint_type):
    """Creates the JSON payload necessary to bring the specified hostnames up/down for maintenance.
    :param hostnames: a list of hostnames
    :returns: a dictionary representing the list of machines to bring up/down for maintenance
    """
    return {
        "type": maint_type.upper(),
        maint_type.lower(): {"machines": get_machine_ids(hostnames)},
    }
def build_maintenance_payload ( hostnames , maint_type ) : return { "type" : maint_type . upper ( ) , maint_type . lower ( ) : { "machines" : get_machine_ids ( hostnames ) } , }