]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
PDU::xenuse: Make use of ipmpi 'chassis bootdev pxe' conditional on a flag
authorIan Campbell <ian.campbell@citrix.com>
Mon, 9 Sep 2013 09:16:18 +0000 (10:16 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 9 Sep 2013 09:16:18 +0000 (10:16 +0100)
Osstest/PDU/xenuse.pm

index 82a5999b9c7cf3532aee5b7bc478c83789ec8065..c06bc0c0e87322d91c9bed7f837c677b3a23bbfc 100644 (file)
@@ -49,7 +49,7 @@ sub pdu_power_state {
 
     if ( $on ) {
        #XXX this should be conditional
-       system_checked(qw(ipmitool -H), "$mo->{Host}{Name}-mgmt",qw(-U admin -P admin chassis bootdev pxe));
+       system_checked(qw(ipmitool -H), "$mo->{Host}{Name}-mgmt",qw(-U admin -P admin chassis bootdev pxe)) if $mo->{Host}{Flags}{'need-ipmi-pxe'};
        system_checked(qw(xenuse --on), "$mo->{Host}{Name}");
     } else {
        system_checked(qw(xenuse --off), "$mo->{Host}{Name}");