Skip to content

Commit

Permalink
(cluster) function renamed from create_config_file to create_config_f…
Browse files Browse the repository at this point in the history
…ile_atomically

(cherry picked from commit 3b805c0)
  • Loading branch information
spointu committed Jan 2, 2025
1 parent 093855d commit be3c5dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pulse_xmpp_agent/agentxmpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ def handle_disconnected(self, data):
except BaseException:
self.config.confdomain = str(serverjid)
logger.debug(
f"reecrit cluster.ini {self.config.Port}{ipfromdns(self.config.Server)}{arsconnection}{self.config.guacamole_baseurl}"
f"Rewriting cluster.ini file: {self.config.Port} {ipfromdns(self.config.Server)} {arsconnection} {self.config.guacamole_baseurl}"
)
changeconnection(
conffilename(self.config.agenttype),
Expand All @@ -1286,8 +1286,8 @@ def handle_disconnected(self, data):
self.alternatifconnection["nextserver"] = 1

# write alternative configuration
create_config_file(conffilenametmp("cluster"), self.alternatifconnection)
create_config_file(conffilename("cluster"), self.alternatifconnection)
create_config_file_atomically(conffilenametmp("cluster"), self.alternatifconnection)
create_config_file_atomically(conffilename("cluster"), self.alternatifconnection)
self.address = (
ipfromdns(self.config.Server),
int(self.config.Port),
Expand Down

0 comments on commit be3c5dd

Please sign in to comment.