From 3f98034274e4f937a205f73a98d86f3126660d7b Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Mon, 13 Sep 2021 16:25:40 -0400 Subject: [PATCH] fix metros URL with correct prefix path Signed-off-by: Marques Johansson --- packet/Manager.py | 2 +- test/fixtures/{get_metros.json => get_locations_metros.json} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename test/fixtures/{get_metros.json => get_locations_metros.json} (100%) diff --git a/packet/Manager.py b/packet/Manager.py index d8d1d59..4102bfc 100644 --- a/packet/Manager.py +++ b/packet/Manager.py @@ -43,7 +43,7 @@ def list_facilities(self, params={}): return facilities def list_metros(self, params={}): - data = self.call_api("metros", params=params) + data = self.call_api("locations/metros", params=params) metros = list() for jsoned in data["metros"]: metro = Metro(jsoned) diff --git a/test/fixtures/get_metros.json b/test/fixtures/get_locations_metros.json similarity index 100% rename from test/fixtures/get_metros.json rename to test/fixtures/get_locations_metros.json