mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
17 lines
475 B
Python
17 lines
475 B
Python
![]() |
import base
|
||
|
|
||
|
|
||
|
class Manifest(base.Manifest):
|
||
|
def validate(self, data):
|
||
|
super(Manifest, self).validate(data)
|
||
|
from os import path
|
||
|
schema_path = path.join(path.dirname(__file__), 'manifest-schema.json')
|
||
|
self.schema_validate(data, schema_path)
|
||
|
|
||
|
def parse(self, data):
|
||
|
super(Manifest, self).parse(data)
|
||
|
self.image = data['image']
|
||
|
self.virtualization = data['virtualization']
|
||
|
if 'loopback_dir' not in self.volume:
|
||
|
self.volume['loopback_dir'] = '/tmp'
|