From d71018a664cebd1e48bb712847fc03a0b0540e01 Mon Sep 17 00:00:00 2001 From: phamt Date: Tue, 8 May 2012 21:32:11 +0000 Subject: [PATCH] Allowed generated node names to come from free ones available, and not the highest base digit. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12577 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/xcat/plugins/webportal.pm | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/xCAT-UI/xcat/plugins/webportal.pm b/xCAT-UI/xcat/plugins/webportal.pm index 89247941f..fca826280 100644 --- a/xCAT-UI/xcat/plugins/webportal.pm +++ b/xCAT-UI/xcat/plugins/webportal.pm @@ -482,22 +482,6 @@ sub gennodename { } } # End of foreach } # End of foreach - - # Are there nodes in this group already? - # If so, use the existing nodes as a base - my $out = `nodels $group`; - @args = split( /\n/, $out ); - foreach (@args) { - $_ =~ s/$hostname_regex/$1/g; - - # Take the greatest digit - if ( int($_) > $base_digit ) { - $base_digit = int($_); - } - } - - # +1 to base digit to obtain next hostname - $base_digit = $base_digit + 1; # Generate hostname $hostname = $base_hostname;