Wrap EBS specific tasks in an if block

This commit is contained in:
Anders Ingemann 2013-07-07 19:32:13 +02:00
parent 20587148f4
commit 7c2f248649

View file

@ -65,8 +65,9 @@ def tasks(tasklist, manifest):
apt.EnableDaemonAutostart(), apt.EnableDaemonAutostart(),
filesystem.UnmountSpecials(), filesystem.UnmountSpecials(),
filesystem.UnmountVolume(), filesystem.UnmountVolume(),
ebs.DetachVolume(), filesystem.DeleteMountDir())
filesystem.DeleteMountDir(), if manifest.volume['backing'].lower() == 'ebs':
tasklist.add(ebs.DetachVolume(),
ebs.CreateSnapshot()) ebs.CreateSnapshot())
from common.tasks import TriggerRollback from common.tasks import TriggerRollback