Skip to content

Commit

Permalink
contract: send activityInfo after cli enable and disable
Browse files Browse the repository at this point in the history
  • Loading branch information
orndorffgrant committed Jun 21, 2023
1 parent e1c796a commit ae06224
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions uaclient/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,9 @@ def action_disable(args, *, cfg, **kwargs):
service_msg=service_msg,
)

contract_client = contract.UAContractClient(cfg)
contract_client.update_activity_token()

event.process_events()
return 0 if ret else 1

Expand Down Expand Up @@ -1344,6 +1347,9 @@ def action_enable(args, *, cfg, **kwargs):
event.services_failed(entitlements_not_found)
raise exceptions.UserFacingError(msg=msg.msg, msg_code=msg.name)

contract_client = contract.UAContractClient(cfg)
contract_client.update_activity_token()

event.process_events()
return 0 if ret else 1

Expand Down

0 comments on commit ae06224

Please sign in to comment.