@@ -46,7 +46,7 @@ def delete_image(self, image_id):
4646 """
4747 self .vgbdtg .deleteObject (id = image_id )
4848
49- def list_private_images (self , guid = None , name = None , ** kwargs ):
49+ def list_private_images (self , guid = None , name = None , limit = 100 , ** kwargs ):
5050 """List all private images.
5151
5252 :param string guid: filter based on GUID
@@ -68,7 +68,7 @@ def list_private_images(self, guid=None, name=None, **kwargs):
6868 kwargs ['filter' ] = _filter .to_dict ()
6969
7070 account = self .client ['Account' ]
71- return account . getPrivateBlockDeviceTemplateGroups ( ** kwargs )
71+ return self . client . iter_call ( 'Virtual_Guest_Block_Device_Template_Group' , 'getPrivateBlockDeviceTemplateGroups' , ** kwargs , limit = limit )
7272
7373 def list_public_images (self , guid = None , name = None , limit = 100 , ** kwargs ):
7474 """List all public images.
@@ -89,7 +89,7 @@ def list_public_images(self, guid=None, name=None, limit=100, **kwargs):
8989
9090 kwargs ['filter' ] = _filter .to_dict ()
9191
92- return self .vgbdtg . getPublicImages ( ** kwargs , limit = limit )
92+ return self .client . iter_call ( 'Virtual_Guest_Block_Device_Template_Group' , 'getPublicImages' , ** kwargs , limit = limit )
9393
9494 def _get_ids_from_name_public (self , name ):
9595 """Get public images which match the given name."""
0 commit comments