We're updating the issue view to help you get more done. 

Misleading error message if invalid YAML provided as input file

Description

For cfy bootstrap or cfy deployments create (or any command that takes -i), if the inputs given are in the form of a YAML file, but the YAML is invalid (for example: alignment issues), the user has absolutely no way of knowing. The error they'll get is:

1 2 3 4 5 6 Invalid input: me.yaml. It must represent a dictionary. Valid values can be one of: - A path to a YAML file - A path to a directory containing YAML files - A single quoted wildcard based path (e.g. '*-inputs.yaml') - A string formatted as JSON/YAML - A string formatted as key1=value1;key2=value2

The reason is that we're hiding the CloudifyCliError that causes parsing to fail.

Status

Assignee

Isaac Shabtay

Reporter

Isaac Shabtay

Labels

Severity

None

Bug Type

None

Target Version

None

Severity

None

Fix versions

Affects versions

4.1.1