mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-07 17:40:30 +00:00
Make 'packages' optional
This commit is contained in:
parent
6c18bca05a
commit
7a4721bd70
2 changed files with 3 additions and 4 deletions
|
@ -99,7 +99,7 @@
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["provider", "bootstrapper", "image", "volume", "system"],
|
"required": ["provider", "bootstrapper", "system", "volume"],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"path": {
|
"path": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -150,6 +150,5 @@
|
||||||
},
|
},
|
||||||
"required": ["size", "filesystem"]
|
"required": ["size", "filesystem"]
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"required": ["provider", "bootstrapper", "system", "packages", "volume"]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ class Manifest(object):
|
||||||
self.image = self.data['image']
|
self.image = self.data['image']
|
||||||
self.volume = self.data['volume']
|
self.volume = self.data['volume']
|
||||||
self.system = self.data['system']
|
self.system = self.data['system']
|
||||||
self.packages = self.data['packages']
|
self.packages = self.data['packages'] if 'packages' in self.data else {}
|
||||||
self.plugins = self.data['plugins'] if 'plugins' in self.data else {}
|
self.plugins = self.data['plugins'] if 'plugins' in self.data else {}
|
||||||
|
|
||||||
def load_json(self, path):
|
def load_json(self, path):
|
||||||
|
|
Loading…
Add table
Reference in a new issue