Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLI: Fix bug with profile name determination in
verdi presto
(#6477)
When the user is using `verdi presto` to create more than 11 profiles, the command will fail because `presto-10` already exists. This is due to the fact that the `get_default_presto_profile_name()` function sorts the existing indices as strings, which means `10` will precede `9` and hence the "last index" would be `9`, making the new index `10`, which already exists. Here we fix this issue by casting the extracted existing indices as integers, so the sorting works as intended.
- Loading branch information