Skip to content
Snippets Groups Projects
Commit b100a61c authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

hardcode organization config

parent 35906e5c
No related branches found
Tags 0.24
No related merge requests found
import json
import jsonschema
DEFAULT_ORGANIZATIONS = [
{
"name": "Main Org.",
"excluded_nrens": [],
"excluded_dashboards": []
},
{
"name": "GÉANT Staff",
"excluded_nrens": [],
"excluded_dashboards": []
},
{
"name": "NRENs",
"excluded_nrens": [],
"excluded_dashboards": []
},
{
"name": "General Public",
"excluded_nrens": [
"JISC",
"PSNC"
],
"excluded_dashboards": []
},
{
"name": "CAE1 - Europe",
"excluded_nrens": [
"JISC",
"PSNC"
],
"excluded_dashboards": []
}
]
CONFIG_SCHEMA = {
"$schema": "http://json-schema.org/draft-07/schema#",
......@@ -52,7 +86,6 @@ CONFIG_SCHEMA = {
"hostname": {"type": "string"},
"listen_port": {"type": "integer"},
"inventory_provider": {"type": "string"},
"organizations": {"type": "array", "items": {"$ref": "#definitions/organization"}},
"datasources": {
"type": "object",
"properties": {
......@@ -66,10 +99,8 @@ CONFIG_SCHEMA = {
"admin_password",
"hostname",
"inventory_provider",
"organizations",
"datasources"
],
"additionalProperties": False
]
}
......@@ -79,7 +110,6 @@ def defaults():
"admin_password": "admin",
"hostname": "localhost:3000",
"listen_port": 3001,
"organizations": ["Main Org."],
"datasources": {}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment