canonical / openstack-exporter-operator

The openstack-exporter-operator is a machine charm for openstack-exporter.
Apache License 2.0
1 stars 6 forks source link

refactor: remove snap_service arg #10

Closed samuelallan72 closed 5 months ago

samuelallan72 commented 5 months ago

snap_service (SNAP_SERVICE_NAME) is passed around everywhere to refer to the actual service running in the snap. This isn't required, because the snap has a single service, and omitting the service with the snap client methods will manage all available services for the snap.

So we can remove some code by removing SNAP_SERVICE_NAME and snap_service from the SnapService class.