2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 20:30:56 +00:00

Initialize IPMI variables earlier

In some scenarios, an IPMI instance could be called to handle
data earlier than it should.  Ensure the state of the object is
in adequate shape to react as soon as possible.
This commit is contained in:
Jarrod Johnson
2017-05-02 10:49:39 -04:00
parent d05752e257
commit 7a8d431650

View File

@ -181,6 +181,7 @@ sub new {
my $self = {};
bless $self, $class;
my %args = @_;
$self->init();
unless ($ipmi2support) {
$self->{ipmi15only} = 1;
}
@ -238,7 +239,6 @@ sub new {
} else {
$self->{peeraddr} = sockaddr_in($self->{port}, $bmc_n);
}
$self->init();
return $self;
}