Open jfontan opened 10 years ago
The cli should parse the error and give something more friendly that this:
$ appmarket create ima.json -u default -p default { "message": "KEY: publisher not allowed; SCHEMA: typeobjectpropertiesvisitstypenulldefault0statustypestringenuminitreadyconvertingdownloadingpublishingerrordefaultinitnametypestringrequiredtruesource_typetypestringenumovadescriptiontypestringrequiredtrueos-archtypestringdefaultx86_64opennebula_templatetypestringsourcetypestringformaturishort_descriptiontypestringrequiredtrueformattypestringenumrawvmdkqcow2vdidefaultrawos-idtypestringdefaultlogotypestringformaturidefault/img/logos/default.pngfilestypearrayitemstypeobjectpropertiesnametypestringtypetypestringenumOSCDROMDATABLOCKdefaultOSos-archtypestringdefaultx86_64formattypestringenumrawvmdkqcow2vdidefaultrawurltypestringformaturios-idtypestringdefaulthypervisortypestringenumVMWAREXENKVMalldefaultallsizetypestringrequiredtrueos-releasetypestringdefaultmd5typestringdev_prefixtypestringcompressiontypestringenumbz2gzipnonedefaultnonesha1typestringdrivertypestringos-releasetypestringdefaulthypervisortypestringenumVMWAREXENKVMalldefaultalltagstypearraydefaultitemstypestringversiontypestringdefault1.0downloadstypenulldefault0opennebula_versiontypestringdefaultallcatalogtypestringdefaultcommunity" }
Adding to this: the same kind of json error is shown in the sunstone tab (notifier error pop-ups)
The cli should parse the error and give something more friendly that this: