From e0cfa124aedd11566a6d1768b6b39105767bbdd9 Mon Sep 17 00:00:00 2001
From: Robert Latta <robert.latta@geant.org>
Date: Fri, 13 Aug 2021 10:20:18 +0000
Subject: [PATCH] reinstated otrs-export to config as optional

---
 inventory_provider/config.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/inventory_provider/config.py b/inventory_provider/config.py
index d9916f1c..8b9d0a6d 100644
--- a/inventory_provider/config.py
+++ b/inventory_provider/config.py
@@ -41,6 +41,22 @@ CONFIG_SCHEMA = {
             'required': ['api', 'username', 'password'],
             'additionalProperties': False
         },
+        'otrs-export': {
+            'type': 'object',
+            'properties': {
+                'username': {'type': 'string'},
+                'private-key': {'type': 'string'},
+                'known-hosts': {'type': 'string'},
+                'destination': {'type': 'string'}
+            },
+            'required': [
+                'username',
+                'private-key',
+                'known-hosts',
+                'destination'
+            ],
+            'additionalProperties': False
+        },
         'redis-credentials': {
             'type': 'object',
             'properties': {
@@ -175,6 +191,7 @@ CONFIG_SCHEMA = {
         'redis': {'$ref': '#/definitions/redis-credentials'},
         'sentinel': {'$ref': '#/definitions/redis-sentinel-config'},
         'ims': {'$ref': '#/definitions/ims'},
+        'otrs-export': {'$ref': '#/definitions/otrs-export'},
         'redis-databases': {
             'type': 'array',
             'minItems': 1,
-- 
GitLab