Update mapfile_validators.py (#3136)

This commit is contained in:
wrexbe
2022-08-14 16:20:12 -07:00
committed by GitHub
parent 25212cbb4d
commit 4d5075a792

View File

@@ -5,7 +5,4 @@ class Component(Validator):
tag = "comp"
def _is_valid(self, value):
data = yaml.safe_load(value)
if data["type"]:
return True
return False
return 'type' in value