Commit Graph
1 Commits
  • dns_azure : Multiple domains with same ending bug
    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).*".