コード例 #1
0
 def handle_delete(self):
     if self.resource_id is None:
         return progress.VolumeDeleteProgress(True)
     prg = progress.VolumeDeleteProgress()
     prg.backup['called'] = True
     prg.backup['complete'] = True
     return prg
コード例 #2
0
 def handle_snapshot_delete(self, state):
     backup = state not in ((self.CREATE, self.FAILED), (self.UPDATE,
                                                         self.FAILED))
     prg = progress.VolumeDeleteProgress()
     prg.backup['called'] = not backup
     prg.backup['complete'] = not backup
     return prg