You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
If there's a parse error in a workload the create command fails with an error that looks something like this.
$ ccloudvm create --debug xenial
Error: Error applying template to user-data: Error parsing workload: Unable to unmarshal userdata: yaml: line 45: found unexpected end of stream
This information, including the line number, is useless as it doesn't indicate which workload is causing the problem (if you're using inheritance there may be more than one) and as the workload is pre-processed before handing it to the yaml parser, the line number 45 is meaningless.
The only way to really fix this is ccloudvm to return better error information including some sort of context along with the error. Something like
The line numbers have never correctly reflected the multiple document nature of the files. I did look into the yaml package in the past and sadly there is no way to extract the line number at fault in a programmatic form such that it could be made file relative vs document relative.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If there's a parse error in a workload the create command fails with an error that looks something like this.
This information, including the line number, is useless as it doesn't indicate which workload is causing the problem (if you're using inheritance there may be more than one) and as the workload is pre-processed before handing it to the yaml parser, the line number 45 is meaningless.
The only way to really fix this is ccloudvm to return better error information including some sort of context along with the error. Something like
would be great if we could do it.
The text was updated successfully, but these errors were encountered: