def add_param_to_node(nm_host, node_id, pname, pval, dry_run=False):
    '\n    add a parameter to a node in NodeMeister\n\n    :param nm_host: NodeMeister hostname or IP\n    :type nm_host: string\n    :param node_id: numeric ID of the node to add param to\n    :type node_id: int\n    :param pname: parameter name\n    :type pname: string\n    :param pval: parameter value\n    :type pval: string\n    :param dry_run: if True, only print what would be done, do not make any changes\n    :type dry_run: boolean\n    :returns: True on success or False on failure\n    :rtype: boolean\n    '
    if ((pval.strip() == '') or (pval == '') or (pval == "''")):
        pval = None
    payload = {'node': node_id, 'paramkey': pname, 'paramvalue': pval}
    url = ('http://%s/enc/parameters/nodes/' % nm_host)
    logger.debug("adding param '{pname}' to node {n} with val: {pval}".format(n=node_id, pname=pname, pval=pval))
    status_code = do_post(url, payload, dry_run=dry_run)
    if (status_code == 201):
        return True
    logger.error(('ERROR: add_param_to_node got status code %d' % status_code))
    return False
add a parameter to a node in NodeMeister

:param nm_host: NodeMeister hostname or IP
:type nm_host: string
:param node_id: numeric ID of the node to add param to
:type node_id: int
:param pname: parameter name
:type pname: string
:param pval: parameter value
:type pval: string
:param dry_run: if True, only print what would be done, do not make any changes
:type dry_run: boolean
:returns: True on success or False on failure
:rtype: boolean
def add_param_to_node(nm_host, node_id, pname, pval, dry_run=False):
    '\n    add a parameter to a node in NodeMeister\n\n    :param nm_host: NodeMeister hostname or IP\n    :type nm_host: string\n    :param node_id: numeric ID of the node to add param to\n    :type node_id: int\n    :param pname: parameter name\n    :type pname: string\n    :param pval: parameter value\n    :type pval: string\n    :param dry_run: if True, only print what would be done, do not make any changes\n    :type dry_run: boolean\n    :returns: True on success or False on failure\n    :rtype: boolean\n    '
    if ((pval.strip() == ) or (pval == ) or (pval == )):
        pval = None
    payload = {'node': node_id, 'paramkey': pname, 'paramvalue': pval}
    url = ('http://%s/enc/parameters/nodes/' % nm_host)
    logger.debug("adding param '{pname}' to node {n} with val: {pval}".format(n=node_id, pname=pname, pval=pval))
    status_code = do_post(url, payload, dry_run=dry_run)
    if (status_code == 201):
        return True
    logger.error(('ERROR: add_param_to_node got status code %d' % status_code))
    return False