Browse Source

Merge "Don't log unsupported document type messages"

changes/11/640511/1
Zuul 2 months ago
parent
commit
e7c7a86f48
1 changed files with 0 additions and 13 deletions
  1. 0
    13
      armada/utils/validate.py

+ 0
- 13
armada/utils/validate.py View File

@@ -177,19 +177,6 @@ def validate_armada_document(document):
177 177
                 diagnostic='Armada is misconfigured.')
178 178
             LOG.error('ValidationMessage: %s', vmsg.get_output_json())
179 179
             details.append(vmsg.get_output())
180
-    else:
181
-        vmsg = ValidationMessage(
182
-            message='Unsupported document type.',
183
-            error=False,
184
-            name='ARM002',
185
-            level='Warning',
186
-            schema=schema,
187
-            doc_name=document_name,
188
-            diagnostic='Please ensure document is one of '
189
-            'the following schema types: %s' % list(SCHEMAS.keys()))
190
-        LOG.info('Unsupported document type, ignoring %s.', schema)
191
-        LOG.debug('ValidationMessage: %s', vmsg.get_output_json())
192
-        # Validation API doesn't care about this type of message, don't send
193 180
 
194 181
     if len([x for x in details if x.get('error', False)]) > 0:
195 182
         return False, details

Loading…
Cancel
Save