Fix: validate_all needs config object, not docs

Change-Id: Ibf1de5762d59b311fe8fc27b951f11009ce98eb9
This commit is contained in:
Mark Burnett 2018-09-12 16:41:04 -05:00
parent dc82a90b83
commit 9f0cc79ec5
1 changed files with 3 additions and 2 deletions

View File

@ -37,12 +37,13 @@ class Configuration:
raise exceptions.DeckhandException(str(e))
LOG.info("Deckhand engine returned %d documents." % len(documents))
if validate:
validation.validate_all(documents)
self.debug = debug
self.documents = documents
self.leave_kubectl = leave_kubectl
if validate:
validation.validate_all(self)
@classmethod
def from_streams(cls, *, streams, **kwargs):
documents = []