@@ -140,20 +140,20 @@ DataInterface::DataInterface(sdbusplus::bus_t& bus) : _bus(bus)
140
140
_properties.emplace_back (std::make_unique<PropertyWatcher<DataInterface>>(
141
141
bus, object_path::hostState, interface::bootProgress, " BootProgress" ,
142
142
*this , [this ](const auto & value) {
143
- this ->_bootState = std::get<std::string>(value);
144
- auto status = Progress::convertProgressStagesFromString (
145
- std::get<std::string>(value));
143
+ this ->_bootState = std::get<std::string>(value);
144
+ auto status = Progress::convertProgressStagesFromString (
145
+ std::get<std::string>(value));
146
146
147
- if ((status == Progress::ProgressStages::SystemInitComplete) ||
148
- (status == Progress::ProgressStages::OSRunning))
149
- {
150
- setHostUp (true );
151
- }
152
- else
153
- {
154
- setHostUp (false );
155
- }
156
- }));
147
+ if ((status == Progress::ProgressStages::SystemInitComplete) ||
148
+ (status == Progress::ProgressStages::OSRunning))
149
+ {
150
+ setHostUp (true );
151
+ }
152
+ else
153
+ {
154
+ setHostUp (false );
155
+ }
156
+ }));
157
157
158
158
// Watch the host PEL enable property
159
159
_properties.emplace_back (std::make_unique<PropertyWatcher<DataInterface>>(
@@ -165,22 +165,22 @@ DataInterface::DataInterface(sdbusplus::bus_t& bus) : _bus(bus)
165
165
std::get<bool >(value));
166
166
}
167
167
this ->_sendPELsToHost = std::get<bool >(value);
168
- }));
168
+ }));
169
169
170
170
// Watch the BMCState property
171
171
_properties.emplace_back (std::make_unique<PropertyWatcher<DataInterface>>(
172
172
bus, object_path::bmcState, interface::bmcState, " CurrentBMCState" ,
173
173
*this , [this ](const auto & value) {
174
- const auto & state = std::get<std::string>(value);
175
- this ->_bmcState = state;
174
+ const auto & state = std::get<std::string>(value);
175
+ this ->_bmcState = state;
176
176
177
- // Wait for BMC ready to start watching for
178
- // plugs so things calm down first.
179
- if (BMC::convertBMCStateFromString (state) == BMC::BMCState::Ready)
180
- {
181
- startFruPlugWatch ();
182
- }
183
- }));
177
+ // Wait for BMC ready to start watching for
178
+ // plugs so things calm down first.
179
+ if (BMC::convertBMCStateFromString (state) == BMC::BMCState::Ready)
180
+ {
181
+ startFruPlugWatch ();
182
+ }
183
+ }));
184
184
185
185
// Watch the chassis current and requested power state properties
186
186
_properties.emplace_back (std::make_unique<InterfaceWatcher<DataInterface>>(
@@ -197,14 +197,14 @@ DataInterface::DataInterface(sdbusplus::bus_t& bus) : _bus(bus)
197
197
{
198
198
this ->_chassisTransition = std::get<std::string>(trans->second );
199
199
}
200
- }));
200
+ }));
201
201
202
202
// Watch the CurrentHostState property
203
203
_properties.emplace_back (std::make_unique<PropertyWatcher<DataInterface>>(
204
204
bus, object_path::hostState, interface::hostState, " CurrentHostState" ,
205
205
*this , [this ](const auto & value) {
206
- this ->_hostState = std::get<std::string>(value);
207
- }));
206
+ this ->_hostState = std::get<std::string>(value);
207
+ }));
208
208
209
209
// Watch the BaseBIOSTable property for the hmc managed attribute
210
210
_properties.emplace_back (std::make_unique<PropertyWatcher<DataInterface>>(
@@ -223,7 +223,7 @@ DataInterface::DataInterface(sdbusplus::bus_t& bus) : _bus(bus)
223
223
this ->_hmcManaged = (*currentVal == " Enabled" ) ? true : false ;
224
224
}
225
225
}
226
- }));
226
+ }));
227
227
}
228
228
229
229
DBusPropertyMap
@@ -924,7 +924,7 @@ void DataInterface::inventoryIfaceAdded(sdbusplus::message_t& msg)
924
924
[](const auto & interfacePair) {
925
925
return std::find (hotplugInterfaces.begin (), hotplugInterfaces.end (),
926
926
interfacePair.first ) != hotplugInterfaces.end ();
927
- }) == interfaces.end ())
927
+ }) == interfaces.end ())
928
928
{
929
929
return ;
930
930
}
0 commit comments