Fix instance details not updating on reassigmnent

Always send the instance details update when an instance is reassigned,
not just when it is unassigned.  The idea for not sending an update when
assigned to a host was that the host would send an update on the status
that in turn updates the instance details.  However this is not actually
the case; when a stopped instance is reassigned its status does not
change so the update is ignored.
This commit is contained in:
Hornwitser committed 2024-02-06 22:43:04 +01:00
1 parent 40f5a6ab7c
commit 7ba14f7433
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -941,9 +941,9 @@ export default class Controller {
);
} else {
instance.status = "unassigned";
instance.updatedAtMs = Date.now();
this.instanceDetailsUpdated([instance]);
}
instance.updatedAtMs = Date.now();
this.instanceDetailsUpdated([instance]);
}
/**