Skip to content

Commit

Permalink
fix command case options for sia (AthenZ#1749)
Browse files Browse the repository at this point in the history
  • Loading branch information
havetisyan authored and Dvir Guttman committed Mar 27, 2023
1 parent 65f98b5 commit 3090588
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libs/go/sia/aws/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,15 +418,13 @@ func RunAgent(siaCmd, siaDir, ztsUrl string, opts *options.Options) {
fmt.Sprintf("%s/%s.%s.cert.pem", opts.CertDir, opts.Domain, opts.Services[0].Name),
opts,
)
case "post":
case "register":
case "post", "register":
err := RegisterInstance(data, ztsUrl, opts, false)
if err != nil {
log.Fatalf("Unable to register identity, err: %v\n", err)
}
log.Printf("identity registered for services: %s\n", svcs)
case "rotate":
case "refresh":
case "rotate", "refresh":
err = RefreshInstance(data, ztsUrl, opts)
if err != nil {
log.Fatalf("Refresh identity failed, err: %v\n", err)
Expand Down

0 comments on commit 3090588

Please sign in to comment.