Updated the portals code to scan the yml