Use the public service hostname for existing mail nodes
This commit is contained in:
1 parent
d81e716ff5
commit
e2489aaa1c
8 files changed
+107
-13
No files matched your search
@@ -166,6 +166,8 @@ def form_plan(fields):
|
||||
ssh_user=fields.get(f"{name}_ssh_user", ""),
|
||||
ssh_identity=fields.get(f"{name}_ssh_identity", ""),
|
||||
)
|
||||
if name == "mail" and mode == "remote":
|
||||
target["mail_hostname"] = fields.get("mail_local_host", "")
|
||||
if name == "mail" and mode in {"local", "remote-install"}:
|
||||
field = "host" if mode == "local" else "mail_hostname"
|
||||
target[field] = fields.get("mail_local_host") or (
|
||||
|
||||
Reference in new issue
Block a user