We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b2811f commit 47be8c3Copy full SHA for 47be8c3
1 file changed
controller/instance_handler.go
@@ -51,7 +51,7 @@ func NewInstanceHandler(ds *datastore.DataStore, instanceManagerHandler Instance
51
52
func (h *InstanceHandler) syncStatusWithInstanceManager(log *logrus.Entry, im *longhorn.InstanceManager, instanceName string, spec *longhorn.InstanceSpec, status *longhorn.InstanceStatus, instances map[string]longhorn.InstanceProcess) {
53
defer func() {
54
- if status.CurrentState == longhorn.InstanceStateStopped {
+ if status.CurrentState == longhorn.InstanceStateStopped && !status.Starting {
55
status.InstanceManagerName = ""
56
}
57
}()
0 commit comments