211979: [low rank][PCM4.1][unmanaged node]Failed to create unmanaged node with the length of device name which is less than three letters

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17027 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
simba372 2013-07-26 09:37:43 +00:00
parent 29b94ff6a2
commit 143f106f7d

View File

@ -1036,8 +1036,8 @@ Usage:
setrsp_errormsg("The specified device name $args_dict{'hostname'} already exists. You must use a different device name.");
return;
}
if (! xCAT::NetworkUtils->isValidFQDN($args_dict{'hostname'})){
setrsp_errormsg("The specified device name $args_dict{'hostname'} is invalid. You must use a valid device name.");
if (! xCAT::NetworkUtils->isValidHostname($args_dict{'hostname'})){
setrsp_errormsg("The specified device name $args_dict{'hostname'} is invalid. You must use a valid device name composed of 'a-z' '0-9'.");
return;
}