metadata section not supported in an imported file

Bug #1746532 reported by Miguel Caballer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TOSCA Parser
Fix Released
Undecided
Miguel Caballer

Bug Description

In case of importing a tosca file that has defined the metadata keyname there is an error:

 UnknownFieldError: Template {'some_custom_types': 'some.yml'} contains unknown field "metadata". Refer to the definition to verify valid values.

  File /home/micafer/codigo/git_im/im/toscaparser/tosca_template.py, line 99, in __init__
   self.relationship_types = self._tpl_relationship_types()
  File /home/micafer/codigo/git_im/im/toscaparser/tosca_template.py, line 155, in _tpl_relationship_types
   return self._get_custom_types(RELATIONSHIP_TYPES)
  File /home/micafer/codigo/git_im/im/toscaparser/tosca_template.py, line 203, in _get_custom_types
   type_defs, self.tpl)
  File /home/micafer/codigo/git_im/im/toscaparser/imports.py, line 55, in __init__
   self._validate_and_load_imports()
  File /home/micafer/codigo/git_im/im/toscaparser/imports.py, line 91, in _validate_and_load_imports
   TypeValidation(custom_type, import_def)
  File /home/micafer/codigo/git_im/im/toscaparser/elements/tosca_type_validation.py, line 38, in __init__
   self.import_def = import_def
  File /home/micafer/codigo/git_im/im/toscaparser/elements/tosca_type_validation.py, line 52, in _validate_type_keys
   UnknownFieldError(what='Template ' + str(self.import_def),

summary: - metadata section not supported
+ metadata section not supported in an imported file
description: updated
Changed in tosca-parser:
assignee: nobody → Miguel Caballer (micafer1)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tosca-parser (master)

Fix proposed to branch: master
Review: https://review.openstack.org/539576

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tosca-parser (master)

Reviewed: https://review.openstack.org/539576
Committed: https://git.openstack.org/cgit/openstack/tosca-parser/commit/?id=3af43cb9a88863ccb7f8991ca379163fe23f33e3
Submitter: Zuul
Branch: master

commit 3af43cb9a88863ccb7f8991ca379163fe23f33e3
Author: Miguel Caballer <email address hidden>
Date: Wed Jan 31 16:37:16 2018 +0100

    Closes-Bug: #1746532

    Fix metadata section not supported in an imported file Edit

    Change-Id: I82fa8759984df8e238cbb66d6ef13d7705f30d2e

Changed in tosca-parser:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tosca-parser 1.0.0

This issue was fixed in the openstack/tosca-parser 1.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.