diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm index 2492a73df..961f05c11 100644 --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm @@ -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; }