Skip to content

Commit e09b5f3

Browse files
authored
Merge pull request #230 from schwartzie/fix_get_all_tags
Remove trailing slash from request to retrieve all tags
2 parents 977129c + 9188237 commit e09b5f3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

digitalocean/Manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def get_all_tags(self):
215215
"""
216216
This method returns a list of all tags.
217217
"""
218-
data = self.get_data("tags/")
218+
data = self.get_data("tags")
219219
return [
220220
Tag(token=self.token, **tag) for tag in data['tags']
221221
]

digitalocean/tests/test_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def test_get_all_volumes(self):
487487
def test_get_all_tags(self):
488488
data = self.load_from_file('tags/all.json')
489489

490-
url = self.base_url + 'tags/'
490+
url = self.base_url + 'tags'
491491
responses.add(responses.GET, url,
492492
body=data,
493493
status=200,

0 commit comments

Comments
 (0)