Log the warning instead of raising an exception if input are not passed for tosca template raising
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TOSCA Parser |
Fix Released
|
Medium
|
bharaththiruveedula |
Bug Description
When I tried to parser the below template I got an error.
TEMPLATE:
tosca_definitio
description: Template for deploying a single server with predefined properties.
topology_template:
inputs:
num_cpu:
type: integer
node_templates:
my_server:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
# Guest Operating System properties
os:
# host Operating System image properties
type: Linux
ERROR:
The input "tosca_
MissingRequire
File /usr/local/
sys.exit(main())
File /usr/local/
ParserShell(
File /usr/local/
self.parse(path)
File /usr/local/
tosca = ToscaTemplate(path, None, a_file)
File /usr/local/
self.
File /usr/local/
None)
File /usr/local/
self.inputs = self._inputs()
File /usr/local/
input_
But this is not required output for some use cases. Instead of raising an exception we need to log that error
Changed in tosca-parser: | |
assignee: | nobody → bharaththiruveedula (bharath-ves) |
Fix proposed to branch: master /review. openstack. org/416698
Review: https:/