@@ -412,7 +412,7 @@ def spawn(self, context, instance, image_meta, injected_files,
412412 raise NotImplementedError ()
413413
414414 def destroy (self , context , instance , network_info , block_device_info = None ,
415- destroy_disks = True ):
415+ destroy_disks = True , destroy_secrets = True ):
416416 """Destroy the specified instance from the Hypervisor.
417417
418418 If the instance is not found (for example if networking failed), this
@@ -425,11 +425,13 @@ def destroy(self, context, instance, network_info, block_device_info=None,
425425 :param block_device_info: Information about block devices that should
426426 be detached from the instance.
427427 :param destroy_disks: Indicates if disks should be destroyed
428+ :param destroy_secrets: Indicates if secrets should be destroyed
428429 """
429430 raise NotImplementedError ()
430431
431432 def cleanup (self , context , instance , network_info , block_device_info = None ,
432- destroy_disks = True , migrate_data = None , destroy_vifs = True ):
433+ destroy_disks = True , migrate_data = None , destroy_vifs = True ,
434+ destroy_secrets = True ):
433435 """Cleanup the instance resources .
434436
435437 Instance should have been destroyed from the Hypervisor before calling
@@ -442,6 +444,8 @@ def cleanup(self, context, instance, network_info, block_device_info=None,
442444 be detached from the instance.
443445 :param destroy_disks: Indicates if disks should be destroyed
444446 :param migrate_data: implementation specific params
447+ :param destroy_vifs: Indicates if vifs should be unplugged
448+ :param destroy_secrets: Indicates if secrets should be destroyed
445449 """
446450 raise NotImplementedError ()
447451
0 commit comments