Skip to content

Commit

Permalink
Remove debugging, fix nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
poundifdef committed Nov 18, 2023
1 parent 8493851 commit c3ad881
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions certmaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ func uploadCertToDestination(request models.CertRequest, cert *certificate.Resou
}

func requestCertificates(domain string, email string, dnsProvider string, stage bool) (*certificate.Resource, error) {
log.Println("Environment variables", os.Environ())

// Create a user for ACME
user := newUser(email)

Expand Down
2 changes: 1 addition & 1 deletion lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ func HandleLambdaEvent(event *models.CertRequest) (*models.CertResponse, error)
status = "Failed"
}

return &models.CertResponse{Status: status, Message: err.Error()}, err
return &models.CertResponse{Status: status}, err
}
3 changes: 1 addition & 2 deletions models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ type CertRequest struct {
}

type CertResponse struct {
Status string `json:"status"`
Message string `json:"message"`
Status string `json:"status"`
}

type DestinationConfig struct {
Expand Down

0 comments on commit c3ad881

Please sign in to comment.