Only compare configs if the process will get replaced

This commit is contained in:
Ingo Oppermann 2024-07-19 16:00:45 +02:00
parent 688450f341
commit 308f008969
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -72,11 +72,11 @@ func (s *store) updateProcess(cmd CommandUpdateProcess) error {
return fmt.Errorf("the process with the ID '%s' doesn't exists%w", srcid, ErrNotFound)
}
if p.Config.Equal(cmd.Config) {
return nil
}
if srcid == dstid {
if p.Config.Equal(cmd.Config) {
return nil
}
p.UpdatedAt = time.Now()
p.Config = cmd.Config