From 7b67ff1533d9be075f3f9916ac13e9af50fef299 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Wed, 3 May 2017 20:53:21 -0400 Subject: [PATCH] Print out the data from the Rest call for the Current and Transition States --- xCAT-server/lib/xcat/plugins/openbmc.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 1672f244b..5b0b624a1 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -734,6 +734,11 @@ sub rpower_response { my $response_info = decode_json $response->content; + foreach my $key (keys %{$response_info->{data}}) { + # Debug, print out the Current and Transition States + print "$node: DEBUG host_states $key=$response_info->{'data'}->{$key}\n"; + } + if ($node_info{$node}{cur_status} eq "RPOWER_ON_RESPONSE") { if ($response_info->{'message'} eq $::RESPONSE_OK) { xCAT::SvrUtils::sendmsg("on", $callback, $node);