mirror of https://github.com/apache/cloudstack.git
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:
parent
9b05d55515
commit
e06a8569a2
|
|
@ -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__)
|
||||
|
|
|
|||
Loading…
Reference in New Issue