Add license validation to the config validation check

Should prevent a customer from accidentally saving a config that violates their license

Fixes https://jira.coreos.com/browse/QS-97
This commit is contained in:
Joseph Schorr 2017-12-19 13:44:08 -05:00
parent 024c183f67
commit 72bfebdb60
5 changed files with 75 additions and 0 deletions

View file

@ -204,6 +204,10 @@ class EntitlementValidationResult(object):
entitlement=repr(self.entitlement),
))
def description(self):
msg = '%s requires %s: has status %s'
return msg % (self.requirement.name, self.requirement.count, self.get_status())
def as_dict(self, for_private=False):
def req_view():
return {