Skip to content

Commit

Permalink
get rid of camel case
Browse files Browse the repository at this point in the history
more pythonic
  • Loading branch information
starblast authored and bkizer-tenable committed Oct 6, 2021
1 parent ce99ee3 commit 32b925f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tenable/sc/asset_lists.py
Expand Up @@ -440,15 +440,15 @@ def create(self, name, list_type, **kw):
payload = self._constructor(**kw)
return self._api.post('asset', json=payload).json()['response']

def details(self, id, orgID=None, fields=None):
def details(self, id, org_id=None, fields=None):
'''
Returns the details for a specific asset-list.
:sc-api:`asset-list: details<Asset.html#AssetRESTReference-/asset/{id}?orgID={orgID}>`
:sc-api:`asset-list: details<Asset.html#AssetRESTReference-/asset/{id}?orgID={org_id}>`
Args:
id (int): The identifier for the asset-list.
orgID (int, optional): The organizationID for the asset-list.
org_id (int, optional): The organizationID for the asset-list.
fields (list, optional): A list of attributes to return.
Returns:
Expand All @@ -461,8 +461,8 @@ def details(self, id, orgID=None, fields=None):
params = dict()
if fields:
params['fields'] = ','.join([self._check('field', f, str) for f in fields])
if orgID:
params['orgID'] = orgID
if org_id:
params['orgID'] = org_id
return self._api.get('asset/{}'.format(self._check('id', id,int)),params=params).json()['response']

def edit(self, id, **kw):
Expand Down

0 comments on commit 32b925f

Please sign in to comment.