[
https://issues.apache.org/jira/browse/CLOUDSTACK-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Prasanna Santhanam resolved CLOUDSTACK-2447.
--------------------------------------------
Resolution: Fixed
Assignee: Prachi Damle (was: Prasanna Santhanam)
This was fixed by Prachi:
So the class now looks good:
class listAffinityGroupsCmd (baseCmd):
def __init__(self):
self.isAsync = "false"
"""lists affinity groups by type"""
self.type = None
"""list only resources belonging to the domain specified"""
self.domainid = None
"""List by keyword"""
self.keyword = None
"""If set to false, list only resources belonging to the command's
caller; if set to true - list resources that the caller is authorized to see.
Default value is false"""
self.listall = None
"""defaults to false, but if true, lists all resources from the parent
specified by the domainId till leaves."""
self.isrecursive = None
"""lists affinity groups by virtual machine id"""
self.virtualmachineid = None
""""""
self.pagesize = None
""""""
self.page = None
"""lists affinity groups by name"""
self.name = None
"""list resources by account. Must be used with the domainId
parameter."""
self.account = None
"""list the affinity group by the id provided"""
self.id = None
self.required = []
> listAffinityGroups params (cloudstackAPI) in marvin are not as per API specs
> ----------------------------------------------------------------------------
>
> Key: CLOUDSTACK-2447
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2447
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Affects Versions: 4.1.1
> Reporter: Girish Shilamkar
> Assignee: Prachi Damle
> Fix For: 4.2.0
>
>
> listAffinityGroups.py does not have account and domainid parameters. class
> listAffinityGroupsCmd (baseCmd):
> def __init__(self):
> self.isAsync = "false"
> """list the affinity group by the id provided"""
> self.id = None
> """List by keyword"""
> self.keyword = None
> """lists affinity groups by name"""
> self.name = None
> """"""
> self.page = None
> """"""
> self.pagesize = None
> """lists affinity groups by type"""
> self.type = None
> """lists affinity groups by virtual machine id"""
> self.virtualmachineid = None
> self.required = []
> Whereas the API spec for listAffinityGroups does mention them and rightly so.
> ListAffinityGroups API
> This is a new user API to list affinity groups.Parameters include:
> a) Affinity group Id
> b) Affinity group Name
> c) VM Id
> d) AccountName and DomainId
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira