Skip to content

Commit

Permalink
Merge pull request #103 from venkataanil/set_exp_time
Browse files Browse the repository at this point in the history
set expiration_timestamp for cluster
  • Loading branch information
venkataanil authored Dec 16, 2022
2 parents d209c1e + e632654 commit d5d1186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/helpers/clean_test_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func addTestProperties(body string) (string, error) {
}
properties["user"] = user.Name
cluster["properties"] = properties
if cluster["expiration_timestamp"] == "" {
if cluster["expiration_timestamp"] == nil {
cluster["expiration_timestamp"] = time.Now().Add(time.Hour).Format(time.RFC3339)
}
result, err := json.Marshal(cluster)
Expand Down

0 comments on commit d5d1186

Please sign in to comment.