Fix instance delete bug

Since zvmsdk store all instance in DB in uppercase, so change to
check it in upper case too.

Change-Id: I54f2b346f3d5f17578afa8c342f83045689290f6
This commit is contained in:
nafei yang 2018-01-18 14:35:11 +08:00
parent b44d5d70e1
commit 1a7389a187

View File

@ -160,7 +160,7 @@ class ZVMDriver(driver.ComputeDriver):
def _instance_exists(self, instance_name):
"""Overwrite this to using instance name as input parameter."""
return instance_name in self.list_instances()
return instance_name.upper() in self.list_instances()
def instance_exists(self, instance):
"""Overwrite this to using instance name as input parameter."""