include account and domainid in affinity group creation

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-07-02 17:02:00 +05:30
parent 46bd2f8a28
commit 02f207f6c9
1 changed files with 4 additions and 4 deletions

View File

@ -2970,10 +2970,10 @@ class AffinityGroup:
cmd.name = aff_grp['name']
cmd.displayText = aff_grp['name']
cmd.type = aff_grp['type']
#if account is not None:
# cmd.account = account
#if domainid is not None:
# cmd.domainid = domainid
if account:
cmd.account = account
if domainid:
cmd.domainid = domainid
return AffinityGroup(apiclient.createAffinityGroup(cmd).__dict__)
def update(self, apiclient):