1
0
mirror of https://github.com/kairos-io/kairos-agent.git synced 2025-05-11 09:55:19 +00:00

Fix syntax and don't hide error

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
Dimitris Karakasilis 2023-09-28 16:44:10 +03:00
parent 48c445756e
commit f2ec19d53d
No known key found for this signature in database
GPG Key ID: 286DCAFD2C97DDE3
2 changed files with 2 additions and 2 deletions
internal/agent
pkg/config

View File

@ -197,7 +197,7 @@ var _ = Describe("RunInstall", func() {
It("runs the install", func() {
Skip("Not ready yet")
err = RunInstall(options, "") // TODO
err = RunInstall(options)
Expect(err).ToNot(HaveOccurred())
})
})

View File

@ -199,7 +199,7 @@ func NewUpgradeSpec(cfg *Config) (*v1.UpgradeSpec, error) {
squashedRec, err := hasSquashedRecovery(cfg, ep.Recovery)
if err != nil {
return nil, fmt.Errorf("failed checking for squashed recovery")
return nil, fmt.Errorf("failed checking for squashed recovery: %w", err)
}
if squashedRec {