From e06a8569a2140ed09f2f2e9c91dd5537c85abb32 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Thu, 31 Jan 2013 16:03:15 +0530 Subject: [PATCH] propagate storagetype fix from commit e49b3b to diskOffering Author: Prasanna Santhanam 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 --- tools/marvin/marvin/integration/lib/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/marvin/marvin/integration/lib/base.py b/tools/marvin/marvin/integration/lib/base.py index 830914c0b4c..3751d987785 100644 --- a/tools/marvin/marvin/integration/lib/base.py +++ b/tools/marvin/marvin/integration/lib/base.py @@ -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__)