mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	Add check for avoiding warning messages.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9859 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -283,7 +283,7 @@ sub noderm
 | 
			
		||||
    if (scalar(@$nodes))  {
 | 
			
		||||
        for my $nn ( @$nodes ) {
 | 
			
		||||
            my $nt = xCAT::DBobjUtils->getnodetype($nn);
 | 
			
		||||
            if ( $nt =~ /^(cec|frame)$/ )  {
 | 
			
		||||
            if ( $nt and $nt =~ /^(cec|frame)$/ )  {
 | 
			
		||||
                my $cnodep = xCAT::DBobjUtils->getchildren($nn);
 | 
			
		||||
                if ($cnodep) {
 | 
			
		||||
                    my $cnode = join ',', @$cnodep;            
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user