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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user