Public bug reported:

line 184-187  in /etc/maas/templates/commissioning-user-data/snippets :

if echo "$serverurl" | egrep -q '(^[a-z]+://|^)[a-z0-9\.]+($|/$)'; then
        api_url="MAAS/api/1.0/nodes/"
else
        api_url=`echo $serverurl | sed 
's#^\(\|[a-z]\+://\)[a-zA-Z0-9\.]\+\(\|\:[0-9]\+\)/##'`
fi

-----

DNS host name could contain '-'(hyphen), so you should use

[a-zA-Z0-9\.\-]

insted of

[a-zA-Z0-9\.]

** Affects: maas-enlist (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "maas_enlist.sh.patch"
   
https://bugs.launchpad.net/bugs/1387281/+attachment/4248291/+files/maas_enlist.sh.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas-enlist in Ubuntu.
https://bugs.launchpad.net/bugs/1387281

Title:
  maas-enlist fails if $serverurl contains dashes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas-enlist/+bug/1387281/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to