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:
Andreas Scheuring 2018-01-19 08:54:49 +01:00
parent 255d62a20b
commit a8d040c276
1 changed files with 0 additions and 3 deletions

View File

@ -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())