Skip to content

Commit

Permalink
Add api arg and remove return
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Pleshko committed Sep 9, 2020
1 parent 2485022 commit 93ebc64
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sevenbridges/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ def query(cls, division, role=None, offset=None, limit=None, api=None):
**params
)

def disable(self):
def disable(self, api=None):
"""
Disable user
:return: User object
:param api: Api instance.
:return:
"""
return self._api.delete(
api = api or self._API
api.delete(
url=self._URL['delete'].format(username=self.username)
)

0 comments on commit 93ebc64

Please sign in to comment.