mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Wrap EBS specific tasks in an if block
This commit is contained in:
parent
20587148f4
commit
7c2f248649
1 changed files with 4 additions and 3 deletions
|
@ -65,9 +65,10 @@ def tasks(tasklist, manifest):
|
|||
apt.EnableDaemonAutostart(),
|
||||
filesystem.UnmountSpecials(),
|
||||
filesystem.UnmountVolume(),
|
||||
ebs.DetachVolume(),
|
||||
filesystem.DeleteMountDir(),
|
||||
ebs.CreateSnapshot())
|
||||
filesystem.DeleteMountDir())
|
||||
if manifest.volume['backing'].lower() == 'ebs':
|
||||
tasklist.add(ebs.DetachVolume(),
|
||||
ebs.CreateSnapshot())
|
||||
|
||||
from common.tasks import TriggerRollback
|
||||
tasklist.add(TriggerRollback())
|
||||
|
|
Loading…
Add table
Reference in a new issue