Fix cluster_id length check in startup.py - #700
Conversation
MAX_ID_LENGTH suggests a maximum length, not a static length. I adapted the condition accordingly
|
Good catch. At the beginning I planned to set it only as a maximum. Later I thought that it might be wise to not allow shorter cluster ids to make it less likely to have two clusters with the same id. However, this is not a fix. A fix is to perform a changing |
I'll have a look at this |
|
@XaverStiensmeier I finally added the missing code |
|
I am on holidays starting tomorrow and will not have the time to thoroughly review it before. Quick comment without actually testing it: Am I mistaken or is this preventing cluster termination, listing and update (so everything where cid is needed for a running cluster) as it now runs into because the cluster to terminate of course already exists and the cid is checked independent of selected action. I might be mistaken as it is just my first thought without any testing. |
MAX_ID_LENGTH suggests a maximum length, not a static length. I adapted the condition accordingly