mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	fix for bug 3748: lsdef --osimage need to list all osimage attributes
This commit is contained in:
		
							
								
								
									
										8
									
								
								xCAT-server/lib/xcat/plugins/DBobjectdefs.pm
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										8
									
								
								xCAT-server/lib/xcat/plugins/DBobjectdefs.pm
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -3156,10 +3156,12 @@ sub defls | ||||
|                         foreach my $imgattr (keys %imgentry) | ||||
|                         { | ||||
|                             # Only store the attributes that are not in general node attributes | ||||
|                             if(!defined($myhash{$obj}{$imgattr}) && defined($imgentry{$imgattr})) | ||||
|                             { | ||||
|                             # This is not the right thing to do, list all the osimage attributes instead, | ||||
|                             # like the postscripts and postbootscripts attributes, | ||||
|                             #if(!defined($myhash{$obj}{$imgattr}) && defined($imgentry{$imgattr})) | ||||
|                             #{ | ||||
|                                 $nodeosimagehash{$obj}{$imgattr} = $imgentry{$imgattr}; | ||||
|                             } | ||||
|                             #} | ||||
|                         } | ||||
|                     } | ||||
|                     if (scalar(keys %{$nodeosimagehash{$obj}}) == 0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user