diff --git a/create-nginx-map.py b/create-nginx-map.py index e5eabec..726864a 100644 --- a/create-nginx-map.py +++ b/create-nginx-map.py @@ -83,8 +83,13 @@ def main(): case "dokku": routes.extend(get_dokku_routes(source["url"], source["destination"])) + if len(routes) != len(set(routes)): + raise ValueError("Conflict found!") + for route in sorted(routes, key=operator.attrgetter("hostname")): print(f"{route.hostname}\t{route.destination}; # {route.name}") + print("Found", len(routes), "routes") + if __name__ == "__main__": main()