propagate storagetype fix from commit e49b3b to diskOffering

Author: Prasanna Santhanam <tsp@apache.org>
Date:   Sun Dec 9 23:13:24 2012 -0800

    marvin: storagetype reference only when attr present

    reference the storagetype only when present. storagetype is reqd
    only for devcloud style tests

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-01-31 16:03:15 +05:30
parent 9b05d55515
commit e06a8569a2
1 changed files with 1 additions and 1 deletions

View File

@ -1136,7 +1136,7 @@ class DiskOffering:
if domainid:
cmd.domainid = domainid
if services["storagetype"]:
if "storagetype" in services:
cmd.storagetype = services["storagetype"]
return DiskOffering(apiclient.createDiskOffering(cmd).__dict__)