diff --git a/xCAT-server/lib/xcat/plugins/energy.pm b/xCAT-server/lib/xcat/plugins/energy.pm index 0cd4be70f..c3bc0d065 100644 --- a/xCAT-server/lib/xcat/plugins/energy.pm +++ b/xCAT-server/lib/xcat/plugins/energy.pm @@ -486,6 +486,11 @@ sub run_cim return 1; } } + # check whether the primary ip of fsp is the IP we are accessing + if (defined ($value->[0]->{property}->{PrimaryFSP_IP}->{value}) && $value->[0]->{property}->{PrimaryFSP_IP}->{value} ne $http_params->{ip}) { + # run against the standby fsp, do the next one + return 11; + } # ======start to handle the query and setting======