[ https://issues.apache.org/jira/browse/LIBCLOUD-715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hiroshi Yoshikawa updated LIBCLOUD-715: --------------------------------------- Description: There is no way to specify _CloudStack Project ID_ in *list_images()*'s arguments. So you can't create VMs using project specific templates. I suggest adding _project_ parameter in *list_images()* method as below: {code:title=cloudstack.py|borderStyle=solid} def list_images(self, location=None, project=None): args = { 'templatefilter': 'executable' } if location is not None: args['zoneid'] = location.id if project is not None: args['projectid'] = project.id imgs = self._sync_request(command='listTemplates', params=args, method='GET') {code} was: There is no way to specify _CloudStack Project ID_ in *list_images()*'s arguments. So you can't create VMs using project specific templates. I suggest adding _project_ parameter in *list_images()* method as below: def list_images(self, location=None, project=None): args = { 'templatefilter': 'executable' } if location is not None: args['zoneid'] = location.id if project is not None: args['projectid'] = project.id imgs = self._sync_request(command='listTemplates', params=args, method='GET') > Can't list a template image in CloudStack Project > ------------------------------------------------- > > Key: LIBCLOUD-715 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-715 > Project: Libcloud > Issue Type: Bug > Components: Compute > Environment: CloudStack 4.3.0.2 > Reporter: Hiroshi Yoshikawa > Priority: Minor > > There is no way to specify _CloudStack Project ID_ in *list_images()*'s > arguments. > So you can't create VMs using project specific templates. > I suggest adding _project_ parameter in *list_images()* method as below: > {code:title=cloudstack.py|borderStyle=solid} > def list_images(self, location=None, project=None): > args = { > 'templatefilter': 'executable' > } > if location is not None: > args['zoneid'] = location.id > if project is not None: > args['projectid'] = project.id > imgs = self._sync_request(command='listTemplates', > params=args, > method='GET') > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)