mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	allow empty groups in node ranges, provided they are defined in nodegroup table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3615 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -88,6 +88,15 @@ sub expandatom { | ||||
|                 } | ||||
|           } | ||||
|  | ||||
|   # check to see if atom is a defined group name that didn't have any current members                                                | ||||
|   if ( scalar @nodes == 0 ) {                                                                                                        | ||||
|     for my $row ( $nodegroup->getAllAttribs('groupname') ) {                                                                         | ||||
|       if ( $row->{groupname} eq $atom ) {                                                                                            | ||||
|         return ();                                                                                                                   | ||||
|       }                                                                                                                              | ||||
|     }                                                                                                                                | ||||
|   } | ||||
|  | ||||
| 	if ($atom =~ m/^[0-9]+\z/) {    # if only numbers, then add the prefix | ||||
| 		my $nodename=$nprefix.$atom.$nsuffix; | ||||
| 		return expandatom($nodename,$verify); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user