@@ -288,29 +288,29 @@ func (r *Routes) firmwareInstallComposite(serverID uuid.UUID, fwtp rctypes.Firmw
288
288
// set PXE boot always &&
289
289
// set power cycle server
290
290
291
- fwOobCondition := & rctypes.Condition {
292
- Kind : rctypes .FirmwareInstall ,
291
+ fwInbCondition := & rctypes.Condition {
292
+ Kind : rctypes .FirmwareInstallInband ,
293
293
Version : rctypes .ConditionStructVersion ,
294
294
Parameters : fwtp .MustJSON (),
295
295
State : rctypes .Pending ,
296
296
CreatedAt : createTime ,
297
297
}
298
298
299
- fwInbCondition := & rctypes.Condition {
300
- Kind : rctypes .FirmwareInstallInband ,
299
+ fwOobCondition := & rctypes.Condition {
300
+ Kind : rctypes .FirmwareInstall ,
301
301
Version : rctypes .ConditionStructVersion ,
302
302
Parameters : fwtp .MustJSON (),
303
303
State : rctypes .Pending ,
304
304
CreatedAt : createTime ,
305
305
}
306
306
307
- // invCondition := &rctypes.Condition{
308
- // Kind: rctypes.Inventory,
309
- // Version: rctypes.ConditionStructVersion,
310
- // Parameters: rctypes.MustDefaultInventoryJSON(serverID),
311
- // State: rctypes.Pending,
312
- // CreatedAt: createTime,
313
- // }
307
+ invCondition := & rctypes.Condition {
308
+ Kind : rctypes .Inventory ,
309
+ Version : rctypes .ConditionStructVersion ,
310
+ Parameters : rctypes .MustDefaultInventoryJSON (serverID ),
311
+ State : rctypes .Pending ,
312
+ CreatedAt : createTime ,
313
+ }
314
314
315
315
releaseCond := & rctypes.Condition {
316
316
Kind : rctypes .BrokerReleaseServer ,
@@ -330,8 +330,8 @@ func (r *Routes) firmwareInstallComposite(serverID uuid.UUID, fwtp rctypes.Firmw
330
330
331
331
serverConditions := & rctypes.ServerConditions {}
332
332
if r .enableServerReservation {
333
- // serverConditions.Conditions = append(serverConditions.Conditions, acquireCond, fwOobCondition, invCondition, fwInbCondition , releaseCond)
334
- serverConditions .Conditions = append (serverConditions .Conditions , acquireCond , fwOobCondition , fwInbCondition , releaseCond )
333
+ serverConditions .Conditions = append (serverConditions .Conditions , acquireCond , fwInbCondition , fwOobCondition , invCondition , releaseCond )
334
+ // serverConditions.Conditions = append(serverConditions.Conditions, acquireCond, fwInbCondition, releaseCond)
335
335
} else {
336
336
// serverConditions.Conditions = append(serverConditions.Conditions, fwOobCondition, invCondition)
337
337
serverConditions .Conditions = append (serverConditions .Conditions , fwOobCondition )
0 commit comments