Skip to content

Commit

Permalink
Update image.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JayasilanJibm committed Jul 6, 2023
1 parent 58fdb18 commit 7f33365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SoftLayer/managers/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def list_private_images(self, guid=None, name=None, limit=100, **kwargs):
kwargs['filter'] = _filter.to_dict()

account = self.client['Account']
return account.getPrivateBlockDeviceTemplateGroups(**kwargs, limit=limit)
return self.client.iter_call('Virtual_Guest_Block_Device_Template_Group' , 'getPrivateBlockDeviceTemplateGroups', **kwargs, limit=limit)

def list_public_images(self, guid=None, name=None, limit=100, **kwargs):
"""List all public images.
Expand All @@ -89,7 +89,7 @@ def list_public_images(self, guid=None, name=None, limit=100, **kwargs):

kwargs['filter'] = _filter.to_dict()

return self.client.call('Virtual_Guest_Block_Device_Template_Group', 'getPublicImages', **kwargs, limit=limit)
return self.client.iter_call('Virtual_Guest_Block_Device_Template_Group', 'getPublicImages', **kwargs, limit=limit)

def _get_ids_from_name_public(self, name):
"""Get public images which match the given name."""
Expand Down

0 comments on commit 7f33365

Please sign in to comment.