Closed kefeimo closed 11 months ago
This produced bad results Agent = namedtuple('Agent', ('uuid')) my_agents = [Agent(x) for x in ['9b171ba5-f69f-4895-a69e-b51cf4d78150', '2c7c8405-49c8-48eb-86ff-236ebe39da6e', 'd73a71c8-000f-46aa-8e5f-c4436cf847c3', 'da2c1f0d-6ce5-4095-843c-3abc861d5199', 'f5de325c-e723-41e5-9ceb-fae722a40eb6' ]]
def _calc_min_uuid_length(agents): agent_ids = [agent.uuid for agent in agents] common_len = len(os.path.commonprefix(agent_ids)) return common_len + 1
_calc_min_uuid_length(my_agents)
Description
Hot fix: uuid has extra char when using vctl status
Before
After (fixed and verified as shown below)
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Yes, see the description
Checklist: