Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with Black and PHP CS Fixer #385

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions pulse_xmpp_agent/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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.")
Expand Down Expand Up @@ -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."
Expand Down
Loading