diff --git a/cinder/backup/manager.py b/cinder/backup/manager.py index 363a5784bb8..e8129779ca1 100644 --- a/cinder/backup/manager.py +++ b/cinder/backup/manager.py @@ -33,6 +33,7 @@ Volume backups can be created, restored, deleted and listed. import contextlib import os +import typing from castellan import key_manager from eventlet import tpool @@ -139,6 +140,7 @@ class BackupManager(manager.SchedulerDependentManager): self.service = importutils.import_class(self.driver_name) self.message_api = message_api.API() + @typing.no_type_check def init_host(self, **kwargs): """Run initialization needed for a standalone service.""" ctxt = context.get_admin_context() diff --git a/cinder/scheduler/host_manager.py b/cinder/scheduler/host_manager.py index 041fbbe43eb..c4cc3edc706 100644 --- a/cinder/scheduler/host_manager.py +++ b/cinder/scheduler/host_manager.py @@ -445,6 +445,7 @@ class PoolState(BackendState): self.filter_function = capability.get('filter_function', None) self.goodness_function = capability.get('goodness_function', 0) + @typing.no_type_check def update_pools(self, capability): # Do nothing, since we don't have pools within pool, yet pass diff --git a/cinder/volume/flows/manager/create_volume.py b/cinder/volume/flows/manager/create_volume.py index 8e41162e43b..3749536cde5 100644 --- a/cinder/volume/flows/manager/create_volume.py +++ b/cinder/volume/flows/manager/create_volume.py @@ -1292,6 +1292,7 @@ class CreateVolumeOnFinishTask(NotifyVolumeActionTask): 'migration_target_creating': 'migration_target', } + @typing.no_type_check def execute(self, context, volume, volume_spec): need_update_volume = volume_spec.pop('need_update_volume', True) if not need_update_volume: