• Raphaël Berlamont's avatar
    dns_azure : Multiple domains with same ending bug · 971a85a6
    Raphaël Berlamont authored
    We have a few domains that ends the same. For example :
      iperfony.com
      perfony.com
    
    The problem was in the _get_root functions, when getting the domain_id :
    only the first result "iperfony.com" was returned, because "perfony.com"
    is contained in the "iperfony.com" string.
    
    The correction consist of being strict in the regex, adding a slash (/)
    so that it will only match on ".*/(perfony.com).*" and not
    ".*(perfony.com).*".
    971a85a6
dns_azure.sh 12.1 KB