fix: Reduce Node ID lengths. No need to use the full UUID

This commit is contained in:
Mohamed El Mouctar HAIDARA 2021-09-29 00:32:51 +02:00
parent 708175caf2
commit 6bae1fa2bf
2 changed files with 3 additions and 2 deletions

View file

@ -18,7 +18,8 @@
- Use the correct tooltip for edges
- style: Do not use bold style by default and apply color on nodes border
- Merge when condition with `and`
- fix: Explicitly set color luminance to avoid bright colors
- Explicitly set color luminance to avoid bright colors
- Reduce Node ID lengths. No need to use the full UUID
- test:
- Add Ansible 2.10.7 in the test matrix
- Make test verbose by default with `-vv` in the args

View file

@ -27,7 +27,7 @@ def generate_id(prefix: str = "") -> str:
Generate an uuid to be used as id
:param prefix Prefix to add to the generated ID
"""
return prefix + str(uuid.uuid4())
return prefix + str(uuid.uuid4())[:8]
def clean_name(name: str):