From 18a9a5921c1d74e1b0b78b29000c11aa9790f3a7 Mon Sep 17 00:00:00 2001 From: Mandell Degerness Date: Thu, 2 Feb 2012 18:46:50 +0000 Subject: [PATCH] Remove hard coded m1.tiny behavior. It makes more sense to only care about local_gb. Fixes bug # 851301 Change-Id: I13236020975be8643b227fc2700f2ecefffa5eb7 --- nova/virt/libvirt/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/virt/libvirt/connection.py b/nova/virt/libvirt/connection.py index 905480f187..8e9b7c4c90 100644 --- a/nova/virt/libvirt/connection.py +++ b/nova/virt/libvirt/connection.py @@ -942,7 +942,7 @@ class LibvirtConnection(driver.ComputeDriver): inst_type_id = inst['instance_type_id'] inst_type = instance_types.get_instance_type(inst_type_id) - if inst_type['name'] == 'm1.tiny' or suffix == '.rescue': + if size == 0 or suffix == '.rescue': size = None root_fname += "_sm" else: -- 2.39.5