Remove redundant image check
In prep_for_spawn we checked if the an image was provided during launch. If so we aborted. This check is redundant, as we already check this in _get_partition_instance. The Unittests are still correct! Change-Id: Idfee4d6dd80043c9a468b42c7b33dc7669a2529d
This commit is contained in:
parent
255d62a20b
commit
a8d040c276
|
@ -286,9 +286,6 @@ class DPMDriver(driver.ComputeDriver):
|
|||
def prep_for_spawn(self, context, instance,
|
||||
flavor=None):
|
||||
|
||||
if instance.image_ref != '':
|
||||
raise exceptions.BootFromImageNotSupported()
|
||||
|
||||
inst = self._get_partition_instance(instance)
|
||||
inst.create(inst.properties())
|
||||
|
||||
|
|
Loading…
Reference in New Issue