Merge "Change Error to Warning for missing name of namespace"

This commit is contained in:
Jenkins 2016-10-03 12:53:02 +00:00 committed by Gerrit Code Review
commit d66d5b04ab
1 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ error.register.E060(description='Wrong namespace fqn')
error.register.W045(description='Unsupported usage type')
error.register.W011(description='Invalid class name')
error.register.W048(description='Contract is not valid yaql')
error.register.W060(description='Wrong namespace fqn')
class MuranoPLValidator(base.YamlValidator):
@ -182,7 +183,7 @@ class MuranoPLValidator(base.YamlValidator):
for name, fqn in six.iteritems(value):
if not self._check_fqn_name(fqn):
yield error.report.E060(_('Wrong namespace fqn '
yield error.report.W060(_('Wrong namespace fqn '
'"{}"').format(fqn), fqn)
if not self._check_name(name) and name != '=':
yield error.report.E060(_('Wrong name for namespace '