From 03d06d4e9d35be10563f8a11699fb4e9d26b413b Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Mon, 4 May 2020 12:51:02 +0200
Subject: [PATCH] removed junosspace from config schema

---
 inventory_provider/config.py | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/inventory_provider/config.py b/inventory_provider/config.py
index 9000efbd..11bec625 100644
--- a/inventory_provider/config.py
+++ b/inventory_provider/config.py
@@ -54,16 +54,6 @@ CONFIG_SCHEMA = {
             "required": ["hostname", "port", "name"],
             "additionalProperties": False
         },
-        "junosspace-credentials": {
-            "type": "object",
-            "properties": {
-                "api": {"type": "string"},
-                "username": {"type": "string"},
-                "password": {"type": "string"}
-            },
-            "required": ["api", "username", "password"],
-            "additionalProperties": False
-        },
         "interface-address": {
             "type": "object",
             "properties": {
@@ -88,7 +78,7 @@ CONFIG_SCHEMA = {
             "minItems": 1,
             "items": {"type": "integer"}
         },
-        "junosspace": {"$ref": "#/definitions/junosspace-credentials"},
+        "managed-routers": {"type": "string"},
         "unmanaged-interfaces": {
             "type": "array",
             "items": {"$ref": "#/definitions/interface-address"}
@@ -101,7 +91,7 @@ CONFIG_SCHEMA = {
                 "ssh",
                 "redis",
                 "redis-databases",
-                "junosspace"]
+                "managed-routers"]
         },
         {
             "required": [
@@ -109,7 +99,7 @@ CONFIG_SCHEMA = {
                 "ssh",
                 "sentinel",
                 "redis-databases",
-                "junosspace"]
+                "managed-routers"]
         }
     ],
     "additionalProperties": False
-- 
GitLab