bootstrap-vz/plugins/image_commands/__init__.py

12 lines
307 B
Python
Raw Normal View History

def validate_manifest(data, validator, error):
import os.path
schema_path = os.path.normpath(os.path.join(os.path.dirname(__file__), 'manifest-schema.json'))
validator(data, schema_path)
def resolve_tasks(tasklist, manifest):
from tasks import ImageExecuteCommand
tasklist.add(ImageExecuteCommand)