Non-descriptive CLI errors with missing artifacts

Bug #1429973 reported by Devdatta Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-solumclient
Fix Released
Undecided
Unassigned

Bug Description

Using app create with a plan file that is missing the artifacts section returns a non-descriptive error message.

version: 1
name: missing_artifact
description: A plan that has no artifact.

$ solum app create --plan-file invalidplan.yaml
ERROR: artifacts

Revision history for this message
Ed Cranford (ed--cranford) wrote :

How about we add a check at https://github.com/stackforge/python-solumclient/blob/master/solumclient/solum.py#L654 and throw an exc.CommandError("Plan file has no artifacts.")?

Revision history for this message
Devdatta Kulkarni (devdatta-kulkarni) wrote :

@ed-cranford: Take a look at my patch. I am doing that and other checks.

https://review.openstack.org/#/c/162715/

affects: solum → python-solumclient
Changed in python-solumclient:
status: New → Fix Released
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.