Example #1
0
 def assert_not_frozen(self):
     ctxt = self._context.elevated()
     if db.is_backend_frozen(ctxt, self.host, self.cluster_name):
         msg = _('Modification operations are not allowed on frozen '
                 'storage backends.')
         raise exception.InvalidInput(reason=msg)
Example #2
0
 def assert_not_frozen(self):
     ctxt = self._context.elevated()
     if db.is_backend_frozen(ctxt, self.host, self.cluster_name):
         msg = _('Modification operations are not allowed on frozen '
                 'storage backends.')
         raise exception.InvalidInput(reason=msg)