Skip to content

Commit

Permalink
Merge pull request #1514 from grycap/devel
Browse files Browse the repository at this point in the history
Accept TOSCA in reconfigure
  • Loading branch information
micafer committed Dec 15, 2023
2 parents d3af705 + 07864f7 commit 05859b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions IM/REST.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,9 @@ def RESTReconfigureInfrastructure(infid=None):
if content_type:
if "application/json" in content_type:
radl_data = parse_radl_json(radl_data)
elif "text/yaml" in content_type:
tosca_data = Tosca(radl_data)
_, radl_data = tosca_data.to_radl()
elif "text/plain" in content_type or "*/*" in content_type or "text/*" in content_type:
content_type = "text/plain"
else:
Expand Down

0 comments on commit 05859b6

Please sign in to comment.