bootstrap-vz/plugins/unattended_upgrades/__init__.py
Anders Ingemann 6b6ad527ce Reorder plugin init scripts
Let validate_manifest() always be the first function
2013-12-14 23:18:41 +01:00

12 lines
334 B
Python

def validate_manifest(data, schema_validate):
from os import path
schema_path = path.normpath(path.join(path.dirname(__file__), 'manifest-schema.json'))
schema_validate(data, schema_path)
def tasks(tasklist, manifest):
import tasks
tasklist.add(tasks.AddUnattendedUpgradesPackage,
tasks.EnablePeriodicUpgrades)