mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
Move EC2 VolumeError out of common
This commit is contained in:
parent
29b52a6a70
commit
c7625f85d8
2 changed files with 3 additions and 3 deletions
|
@ -17,6 +17,3 @@ class TaskListError(Exception):
|
|||
self.message = message
|
||||
def __str__(self):
|
||||
return "Error in tasklist: {0}".format(self.message)
|
||||
|
||||
class VolumeError(Exception):
|
||||
pass
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
from base import Task
|
||||
from common import phases
|
||||
from common.exceptions import TaskException
|
||||
from connection import Connect
|
||||
|
||||
class CreateVolume(Task):
|
||||
|
@ -35,3 +36,5 @@ class AttachVolume(Task):
|
|||
raise VolumeError('Unable to find a free block device path for mounting the bootstrap volume')
|
||||
info.conn.volume.attach(info.host['instanceId'], info.bootstrap_device['path'])
|
||||
|
||||
class VolumeError(TaskException):
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue