Skip to content

Commit

Permalink
Merge pull request #35 from mrjerryjohns/feature/fix-instance-id-vali…
Browse files Browse the repository at this point in the history
…dator

Fix Instance ID Validator
  • Loading branch information
mrjerryjohns authored Feb 6, 2020
2 parents 333fdd6 + f69652b commit 1b41866
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions backend/lib/nwv/validators/trait_instance_id_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,4 @@ def visit_Resource(self, interface):
component.instance_id))
instances.add(component.instance_id)

for trait_type, instances in trait_types.iteritems():
if 0 not in instances:
self.add_failure("Trait type %s does not have a "
"component with instance id 0." %
(trait_type.full_name))


process = TraitInstanceIdValidator.process

0 comments on commit 1b41866

Please sign in to comment.