Skip to content

Commit

Permalink
api: add ProgressWrapper to disable call in detach
Browse files Browse the repository at this point in the history
We are missing the ProgressWrapper argument for the disable call
on the detach API
  • Loading branch information
lucasmoura committed Apr 5, 2024
1 parent 10896fe commit 2f45363
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uaclient/api/u/pro/detach/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
timer,
util,
)
from uaclient.api import ProgressWrapper
from uaclient.api.api import APIEndpoint
from uaclient.api.data_types import AdditionalInfo, ErrorWarningObject
from uaclient.api.u.pro.security.status.reboot_required.v1 import (
Expand Down Expand Up @@ -78,7 +79,7 @@ def _detach_in_lock(cfg: UAConfig) -> DetachResult:
# since we are going to disable all of them anyway
can_disable, _ = ent.can_disable(ignore_dependent_services=True)
if can_disable:
ret, reason = ent.disable(silent=True)
ret, reason = ent.disable(progress=ProgressWrapper())
if not ret:
if reason and reason.message:
msg = reason.message.msg
Expand Down

0 comments on commit 2f45363

Please sign in to comment.