From 143f106f7dd697837bcfcd225cedc84695a231f2 Mon Sep 17 00:00:00 2001 From: simba372 Date: Fri, 26 Jul 2013 09:37:43 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/profilednodes.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }