summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-03-01 15:14:59 +0000
committerGerrit Code Review <review@openstack.org>2019-03-01 15:14:59 +0000
commite7c7a86f48f0403a81f2cf78b656a92be3d47874 (patch)
treef66fb246f38f9e9c931bacdea14e0309a7e7d1e3
parent0e76f1bd528b0d15e95187d84990de0b2158d563 (diff)
parent8cf71c0c6d5e50d25464521ff6b0a5c448c7fd67 (diff)
Merge "Don't log unsupported document type messages"
-rw-r--r--armada/utils/validate.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/armada/utils/validate.py b/armada/utils/validate.py
index 98323f3..1f93e1a 100644
--- a/armada/utils/validate.py
+++ b/armada/utils/validate.py
@@ -177,19 +177,6 @@ def validate_armada_document(document):
177 diagnostic='Armada is misconfigured.') 177 diagnostic='Armada is misconfigured.')
178 LOG.error('ValidationMessage: %s', vmsg.get_output_json()) 178 LOG.error('ValidationMessage: %s', vmsg.get_output_json())
179 details.append(vmsg.get_output()) 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 if len([x for x in details if x.get('error', False)]) > 0: 181 if len([x for x in details if x.get('error', False)]) > 0:
195 return False, details 182 return False, details