Skip to content

Commit

Permalink
Merge pull request #7 from RomanNyschuk/D42-26757
Browse files Browse the repository at this point in the history
D42-26757 - [Regression Test]Freshservice standalone server script is throwing an error "TypeError: 'NoneType' object is not subscriptable"
  • Loading branch information
cscaglioned42 committed Jan 24, 2023
2 parents 9b51a63 + 71e1435 commit b229f91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions freshservice.py
Expand Up @@ -163,8 +163,7 @@ def get_all_ci_types(self):
if self.asset_types is not None:
return self.asset_types
path = "api/v2/asset_types"
asset_types = self._get(path)
self.asset_types = asset_types["asset_types"]
self.asset_types = self.request(path, "GET", "asset_types")
return self.asset_types

def get_ci_type_by_name(self, name, all_ci_types=None):
Expand Down

0 comments on commit b229f91

Please sign in to comment.