Don't log unsupported document type messages

In the full airship use case, shipyard sends a deckhand url to
armada which returns all site documents, so this leads to many
many of these unwanted messages which make the logs difficult to
use. Hence this removes these messages.

Change-Id: I297df16d180b9ed6fae6bb8f8a0d96c3533766ae
This commit is contained in:
Sean Eagan 2019-02-27 09:57:59 -06:00
parent c7d9e21b1e
commit 8cf71c0c6d
1 changed files with 0 additions and 13 deletions

View File

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