holos-run / holos

Holos - The Holistic platform manager
https://holos.run
Apache License 2.0
1 stars 0 forks source link

create platform should be idempotent #205

Closed jeffmccune closed 2 months ago

jeffmccune commented 2 months ago

Do not return an error. Indicate the platform already exists.

Current behavior:

❯ holos create platform --name k3d --display-name "Try Holos Locally"
8:00AM ERR could not execute version=0.87.2 code=failed_precondition err="failed_precondition: platform.go:55: ent: constraint failed: ERROR: duplicate key value violates unique constraint \"platform_org_id_name\" (SQLSTATE 23505)" loc=client.go:138