-Fix rpower output to error on unsupported subcommands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1933 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -1107,6 +1107,8 @@ sub power {
 | 
			
		||||
    $data = $session->set(new SNMP::Varbind([".".$powerresetoid,$slot ,1,'INTEGER']));
 | 
			
		||||
    unless ($data) { return (1,$session->{ErrorStr}); }
 | 
			
		||||
    $stat = "on reset";
 | 
			
		||||
  } else {
 | 
			
		||||
      return 1,"Unknown/Unsupported power command $subcommand";
 | 
			
		||||
  }
 | 
			
		||||
  if ($session->{ErrorStr}) { return (1,$session->{ErrorStr}); }
 | 
			
		||||
  if ($stat) { return (0,$stat); }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user