Running "bmi pro ..." command with the same parameters throws sqlalchemy error to the user
Provisioning a node again with the same parametres throws an sqlalchemy error. Replace this exception with an error message that is more generic for the user.
Example:- bmi pro bmi_infra some_bmi_node ok bmi_network 1 ORM related error = (sqlite3.IntegrityError) UNIQUE constraint failed: image.project_id, image.name
This can be done by creating a new exception, catching sqlite3.IntegrityError and raising the new exception with the required message. Perfect for newbies!!
^+1. Also note, that the code in the api must be taken care of to return the correct error code i.e 409 in this case which makes this a tad bit more complicated.
For all BMI related commands, first review the architecture of cli and then proceed. This is true for all issues raised wrt cli.
@chemistry-sourabh @naved001 can we close this?
It doesn't look like it is resolved.
if somebody wants to fix this in the current version of bmi, they can.