Skip to content

Commit

Permalink
Merge pull request #198 from texierp/v1
Browse files Browse the repository at this point in the history
fixes load and update of UpgradeToInstallation variable
  • Loading branch information
otavio committed Mar 27, 2018
2 parents f75e97e + 0b144da commit dbf9283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/updatehub/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func main() {
}

settings.PersistentPollingSettings = runtimeSettings.PersistentPollingSettings
settings.PersistentUpdateSettings = runtimeSettings.PersistentUpdateSettings

log.Info("starting UpdateHub Agent")
log.Info(" version: ", gitversion)
Expand Down
1 change: 1 addition & 0 deletions updatehub/updatehub.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ func (uh *UpdateHub) InstallUpdate(updateMetadata *metadata.UpdateMetadata, prog
}

log.Info("ActiveInactive activated: ", indexToInstall)
uh.Settings.UpgradeToInstallation = indexToInstall
}

log.Info("update installed successfully")
Expand Down

0 comments on commit dbf9283

Please sign in to comment.