mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-05 04:27:55 +00:00
866302c88a
The template renderer writes the HTTP port into the URLs of a kickstart file, an autoyast profile and a preseed file. It writes the port always, so a URL gets the text ":80" when the site keeps the default port. A URL that gives no port already goes to port 80. Write the port only when the site sets a port that is not 80. The netboot plugins xnba, dhcp and mknb already do this. The module gave the port in three different ways. One place wrote the port always. One place wrote the port only when the port was not 80. One place wrote the port always from the environment. Put the rule in one routine and let the four places use that routine. The routine also accepts a port that is set to nothing. Before, an empty value made a URL that ends with a colon.