Commit fec9b264 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix os_product_key verification code

Product key is a 25-character code and not a 20-character one.
parent 09eed733
......@@ -47,9 +47,9 @@ check_required() {
if [ -n "${OS_PRODUCT_KEY+dummy}" ]; then
if [[ ! "${OS_PRODUCT_KEY}" =~ ^([a-zA-Z0-9]{5}-){3}[a-zA-Z0-9]{5}$ ]]; then
if [[ ! "${OS_PRODUCT_KEY}" =~ ^([a-zA-Z0-9]{5}-){4}[a-zA-Z0-9]{5}$ ]]; then
log_error "Invalid OS API Parameter: os_product_key."
log_error "Valid format is: XXXXX-XXXXX-XXXXX-XXXXX"
log_error "Valid format is: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
exit 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment