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:
parent
b44d5d70e1
commit
1a7389a187
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user