Skip to content

Commit

Permalink
[0.2.1] fix uri, force slash in Item URI
Browse files Browse the repository at this point in the history
  • Loading branch information
mtulio committed May 29, 2017
1 parent 99e6a73 commit 4901828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion glpi/glpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ def create(self, data_json=None):
def get_all(self):
""" Return all content of Item in JSON format. """

res = self.request('GET', self.uri)
uri = '/' + self.uri
res = self.request('GET', uri)
return res.json()

def get(self, item_id):
Expand Down
2 changes: 1 addition & 1 deletion glpi/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2.0'
__version__ = '0.2.1'

0 comments on commit 4901828

Please sign in to comment.