From 708d06fb1b4907a3c70db18baf4d5a9a02cd1a51 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 14 Jan 2024 21:41:21 +0000 Subject: [PATCH] style: format code with Black and PHP CS Fixer This commit fixes the style issues introduced in c8a1cca according to the output from Black and PHP CS Fixer. Details: None --- pulse_xmpp_agent/launcher.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pulse_xmpp_agent/launcher.py b/pulse_xmpp_agent/launcher.py index bdbf6c6cc..826abf18e 100755 --- a/pulse_xmpp_agent/launcher.py +++ b/pulse_xmpp_agent/launcher.py @@ -1307,9 +1307,7 @@ def start_agent(pathagent, agent="connection", console=False, typeagent="machine if opts.check_agent: ret = install_rescue_image().reinstall_agent_rescue() else: - logger.debug( - "The medulla rescue agent is disabled." - ) + logger.debug("The medulla rescue agent is disabled.") # first start network changed networkchanged = networkchanged() @@ -1327,9 +1325,7 @@ def start_agent(pathagent, agent="connection", console=False, typeagent="machine if opts.check_agent: ret = install_rescue_image().reinstall_agent_rescue() else: - logger.debug( - "Medulla rescue agent is disabled" - ) + logger.debug("Medulla rescue agent is disabled") if networkchanged: logger.debug("We detected modifications in the network configuration.") @@ -1444,17 +1440,23 @@ def start_agent(pathagent, agent="connection", console=False, typeagent="machine logger.info( "We are saving the current agent into the rescue copy." ) - rescue_image = create_rescue_agent().save_rescue_src() + rescue_image = ( + create_rescue_agent().save_rescue_src() + ) update_rescue_on_stabilisation = True - logger.info("The copy of the rescue agent is finished.") + logger.info( + "The copy of the rescue agent is finished." + ) except: logger.error( "We hit a backtrace when saving the rescue agent \n %s" % traceback.format_exc() ) else: - logger.debug("The rescue agent is disabled. \n" - "We will not create an image") + logger.debug( + "The rescue agent is disabled. \n" + "We will not create an image" + ) else: logger.error( "We cannot save the rescue copy. Something went wrong."