Skip to content

Commit

Permalink
fixup! secrets: add uploadAt option
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-h committed Jul 19, 2021
1 parent ff4e0cd commit 7d9c7ee
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions morph.go
Expand Up @@ -371,22 +371,22 @@ func execDeploy(hosts []nix.Host) (string, error) {
}
}

if doUploadSecrets {
phase := "post-activation"
err = execUploadSecrets(sshContext, singleHostInList, &phase)
if deployReboot {
err = host.Reboot(sshContext)
if err != nil {
fmt.Fprintln(os.Stderr, "Reboot failed")
return "", err
}

fmt.Fprintln(os.Stderr)
}

if deployReboot {
err = host.Reboot(sshContext)
if doUploadSecrets {
phase := "post-activation"
err = execUploadSecrets(sshContext, singleHostInList, &phase)
if err != nil {
fmt.Fprintln(os.Stderr, "Reboot failed")
return "", err
}

fmt.Fprintln(os.Stderr)
}

if !skipHealthChecks {
Expand Down

0 comments on commit 7d9c7ee

Please sign in to comment.