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/trunk@17028 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
simba372 2013-07-26 09:47:17 +00:00
parent 14656f2613
commit 581631e87d

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;
}