Skip to content

Commit 1d56446

Browse files
committed
Small patch for wait_for_idle
1 parent 58b610b commit 1d56446

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

juju/model.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2478,8 +2478,7 @@ async def wait_for_idle(self, apps=None, raise_on_error=True, raise_on_blocked=F
24782478
warnings.warn("wait_for_active is deprecated; use status", DeprecationWarning)
24792479
status = "active"
24802480

2481-
if wait_for_units is None:
2482-
_wait_for_units = 1
2481+
_wait_for_units = wait_for_units if wait_for_units is not None else 1
24832482

24842483
timeout = timedelta(seconds=timeout) if timeout is not None else None
24852484
idle_period = timedelta(seconds=idle_period)

0 commit comments

Comments
 (0)