File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ impl BlueprintPlanner {
69
69
return status;
70
70
} ;
71
71
let ( target, parent) = & * loaded;
72
+ status. blueprint_id = parent. id ;
72
73
73
74
// Get the inventory most recently seen by the collection
74
75
// background task. The value is `Copy`, so with the deref
@@ -161,6 +162,7 @@ impl BlueprintPlanner {
161
162
"parent_blueprint_id" => %parent. id,
162
163
"blueprint_id" => %blueprint. id,
163
164
) ;
165
+ status. blueprint_id = blueprint. id ;
164
166
165
167
// Save it.
166
168
match self . datastore . blueprint_insert ( opctx, & blueprint) . await {
Original file line number Diff line number Diff line change @@ -471,8 +471,11 @@ pub struct BlueprintPlannerStatus {
471
471
pub error : Option < String > ,
472
472
473
473
/// `true` iff the planning run generated a blueprint that is identical
474
- /// to the current target.
474
+ /// to the target before planning .
475
475
pub unchanged : bool ,
476
+
477
+ /// The id of the (new) current target blueprint.
478
+ pub blueprint_id : BlueprintUuid ,
476
479
}
477
480
478
481
/// The status of a `alert_dispatcher` background task activation.
You can’t perform that action at this time.
0 commit comments