Skip to content

Commit

Permalink
apply substitution
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
  • Loading branch information
Lawouach committed Nov 9, 2023
1 parent c7aa94a commit ed21986
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

## [Unreleased][]

[Unreleased]: https://github.com/chaostoolkit-incubator/chaostoolkit-reliably/compare/0.71.0...HEAD
[Unreleased]: https://github.com/chaostoolkit-incubator/chaostoolkit-reliably/compare/0.71.1...HEAD

## [0.71.1][]

[0.71.1]: https://github.com/chaostoolkit-incubator/chaostoolkit-reliably/compare/0.71.0...0.71.1

### Fixed

* Substitute variable for value

## [0.71.0][]

Expand Down
7 changes: 6 additions & 1 deletion chaosreliably/controls/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import importlib.metadata as im # type: ignore

import orjson
from chaoslib import substitute
from chaoslib.exceptions import InterruptExecution
from chaoslib.exit import exit_gracefully, exit_ungracefully
from chaoslib.run import EventHandlerRegistry, RunEventHandler
Expand Down Expand Up @@ -368,7 +369,11 @@ def start_activity(self, activity: Activity) -> None:
if provider.get("module") == "chaosreliably.activities.pauses":
if not self.paused:
self.paused = True
self.pause_duration = args.get("duration", 0)
self.pause_duration = substitute(
args.get("duration"),
configuration=self.configuration,
secrets=self.secrets,
)

set_execution_state(
self.org_id,
Expand Down

0 comments on commit ed21986

Please sign in to comment.