mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-27 02:41:26 +08:00
add access key subcommand
This commit is contained in:
@@ -75,7 +75,8 @@ func request[T any](method, route string, payload any) *T {
|
||||
}
|
||||
body := new(T)
|
||||
if err := json.Unmarshal(resBodyBytes, body); err != nil {
|
||||
log.Fatalf("Error unmarshalling JSON: %s", err)
|
||||
// log.Printf("Error unmarshalling JSON: %s", err)
|
||||
return nil
|
||||
}
|
||||
return body
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user