Handle custom adapters in schemas.

This commit is contained in:
grossmj committed 2018-11-17 20:09:34 +07:00
1 parent 82140c082c
commit aa4593c993
3 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -17,6 +17,7 @@
CUSTOM_ADAPTERS_ARRAY_SCHEMA = {
"type": "array",
"default": [],
"items": {
"type": "object",
"description": "Custom properties",
@@ -46,4 +47,3 @@ CUSTOM_ADAPTERS_ARRAY_SCHEMA = {
"required": ["adapter_number"]
},
}
+1 -3
View File
@@ -17,7 +17,6 @@
import copy
from .appliance import BASE_APPLIANCE_PROPERTIES
from .custom_adapters import CUSTOM_ADAPTERS_ARRAY_SCHEMA
DOCKER_APPLIANCE_PROPERTIES = {
@@ -76,8 +75,7 @@ DOCKER_APPLIANCE_PROPERTIES = {
"description": "Docker extra hosts (added to /etc/hosts)",
"type": "string",
"default": "",
},
"custom_adapters": CUSTOM_ADAPTERS_ARRAY_SCHEMA
}
}
DOCKER_APPLIANCE_PROPERTIES.update(copy.deepcopy(BASE_APPLIANCE_PROPERTIES))