threefoldtecharchive / 0-robot

Distributed live cycle management system
Apache License 2.0
0 stars 0 forks source link

find_or_create method returns error in case of the service is exising #7

Open rkhamis opened 6 years ago

rkhamis commented 6 years ago

Issue migrated from [https://api.github.com/repos/zero-os/0-robot/issues/259](), opened by @islamTaha12

image

Env zOS: 1.4.1 0-robot: development 0-dm: master 0-template: developmet js9: dev

rkhamis commented 6 years ago

*commented by @zaibon problem is there is a service with this name of the node but you don't have the secret for it so find doesn't return it but create return conflict causes indeed it already exists in the robot.

That's a nasty bug to fix, cause it's more a design flaw then a bug. I should probably try to improve the error message saying that you cannot use this name cause already used but you cannot see it*