def _validate_numa_nodes(nodes):
 if ((nodes is not None) and ((not strutils.is_int_like(nodes)) or (int(nodes) < 1))):
  raise exception.InvalidNUMANodesNumber(nodes=nodes)

def _validate_numa_nodes ( nodes ) : if ( ( nodes is not None ) and ( ( not strutils . is_int_like ( nodes ) ) or ( int ( nodes ) < 1 ) ) ) : raise exception . InvalidNUMANodesNumber ( nodes = nodes )
validate numa nodes number .