add-vm.sh: allow VM name max length > 20
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2628|6|2622|5|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/382//ansiblelint">Evolix » ansible-roles » unstable #382</a>
gitea/ansible-roles/pipeline/head This commit looks good

This commit is contained in:
William Hirigoyen 2023-11-03 10:48:28 +01:00
parent 74a6b2ead1
commit bc284f8248
2 changed files with 2 additions and 1 deletions

View file

@ -20,6 +20,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* evolinux-base: use separate default config file for rsyslog
* evocheck: upstream release 23.10
* add-vm.sh: allow VM name max length > 20
### Fixed

View file

@ -88,7 +88,7 @@ ${DIALOG} \
"memory" 2 1 "${defaultRAM}" 2 10 20 0 \
"volRoot" 3 1 "${disks[0]}-${defaultRootSize}" 3 10 20 0 \
"volHome" 4 1 "${disks[1]}-${defaultHomeSize}" 4 10 20 0 \
"vmName" 5 1 "${defaultVmName}" 5 10 20 0 \
"vmName" 5 1 "${defaultVmName}" 5 10 20 1024 \
2> "${DIALOGOUT}"
vCPU=$(sed 1'q;d' "${DIALOGOUT}")