Skip to content

Commit

Permalink
Formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPreston committed Nov 29, 2023
1 parent f08fdaa commit 51fce20
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ecs_composex/compose/compose_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,10 +771,14 @@ def stop_grace_period(self):
raise TypeError(self.name)
stop_timeout = import_time_values_to_seconds(__stop_grace_period)
if stop_timeout < 2:
LOG.warning(f"services.{self.name} - stop_grace_period/StopTimeout {stop_timeout} < 2 - setting to 2")
LOG.warning(
f"services.{self.name} - stop_grace_period/StopTimeout {stop_timeout} < 2 - setting to 2"
)
stop_timeout = 2
elif stop_timeout > 120:
LOG.warning(f"services.{self.name} - stop_grace_period/StopTimeout {stop_timeout} > 120 - setting to 120")
LOG.warning(
f"services.{self.name} - stop_grace_period/StopTimeout {stop_timeout} > 120 - setting to 120"
)
stop_timeout = 120
return stop_timeout

Expand Down

0 comments on commit 51fce20

Please sign in to comment.