copr: copr-builder-image-prepare-cloud: allow '-' in vm-name
This commit is contained in:
parent
a4a9ca2edc
commit
245c26418e
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ test -z "$2" || ansible_options+=( -e image_name="$2" )
|
|||
|
||||
ansible-playbook "$playbook" "${ansible_options[@]}" |& tee "$logfile"
|
||||
|
||||
vm_name=$(sed -n 's/.*vm_name=\(\w\+\).*/\1/p' "$logfile" | head -1)
|
||||
vm_name=$(sed -n 's/.*vm_name=\([[:alnum:]_-]\+\).*/\1/p' "$logfile" | head -1)
|
||||
test -n "$vm_name"
|
||||
ip=$(sed -n 's/.*VM_IP=\([0-9\.]\+\).*/\1/p' "$logfile" | head -1)
|
||||
test -n "$ip"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue