2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-06 10:18:20 +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 340d7072d6
commit c0bbce36da

View File

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