We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c065c3 commit 9af2321Copy full SHA for 9af2321
1 file changed
archinstall/lib/models/mirrors.py
@@ -258,10 +258,12 @@ def json(self) -> _MirrorConfigurationSerialization:
258
}
259
260
def custom_servers_config(self) -> str:
261
- config = "## Custom Servers\n"
+ config = ""
262
263
- for server in self.custom_servers:
264
- config += f"Server = {server.url}\n"
+ if self.custom_servers:
+ config += "## Custom Servers\n"
265
+ for server in self.custom_servers:
266
+ config += f"Server = {server.url}\n"
267
268
return config.strip()
269
0 commit comments