juju / charm-helpers

Apache License 2.0
18 stars 127 forks source link

Skip service_resume if already enabled #882

Closed dosaboy closed 5 months ago

dosaboy commented 5 months ago

Repeatedly calling service_resume for a service that is already enabled can lead to unintended consequences. This adds a check to only resume a serice if it is not enabled.

Related-Bug: #2058505

brianphaley commented 5 months ago

I think the unit test change was added, so this should be good to merge.