mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	Merge pull request #1533 from xuweibj/hmcpower
Improve performance for hmc mgt
This commit is contained in:
		@@ -237,7 +237,9 @@ sub powercmd_boot {
 | 
			
		||||
                            $op,
 | 
			
		||||
                            $d );
 | 
			
		||||
        unless (@$result[0] != SUCCESS) {
 | 
			
		||||
            $newnodestatus{$newstat}=[$name] if ($newstat);
 | 
			
		||||
            if ($newstat) {
 | 
			
		||||
                push @{ $newnodestatus{$newstat} }, $name;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        push @output, [$name,@$result[1],@$result[0]];
 | 
			
		||||
    }
 | 
			
		||||
@@ -364,7 +366,7 @@ sub powercmd {
 | 
			
		||||
  
 | 
			
		||||
        unless ($Rc != SUCCESS) {
 | 
			
		||||
            if ($newstat) {
 | 
			
		||||
                $newnodestatus{$newstat}=[$name];
 | 
			
		||||
                push @{ $newnodestatus{$newstat} }, $name;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user