From 4e51893bb0dbaade58bb16635a672d2179d601da Mon Sep 17 00:00:00 2001 From: Dimitrios Karagiannis Date: Wed, 6 Nov 2019 17:21:58 +0000 Subject: [PATCH] Reset should use the staging endpoint Signed-off-by: Dimitrios Karagiannis --- util/megaport_token/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/megaport_token/main.go b/util/megaport_token/main.go index 23cf64d..492c151 100644 --- a/util/megaport_token/main.go +++ b/util/megaport_token/main.go @@ -24,7 +24,7 @@ func main() { if token == "" { log.Fatal("To reset the token, please export MEGAPORT_TOKEN with your current token") } - c := api.NewClient(api.EndpointProduction) + c := api.NewClient(api.EndpointStaging) c.Token = token if err := c.Logout(); err != nil { log.Fatal(err)