After some discussion with @aluria we came to the conclusion that this action is better suited for nova-compute charm.
This action is mainly for the purpose of implementing check whether nova-compute unit is safe to reboot/shutdown https://bugs.launchpad.net/juju-verify/+bug/1913700 . As such, it makes more sense to fetch hypervisor list from the unit we are already targeting rather than figuring out which unit is nova-cloud-controller related to the targeted unit.
After some discussion with @aluria we came to the conclusion that this action is better suited for nova-compute charm.
This action is mainly for the purpose of implementing check whether nova-compute unit is safe to reboot/shutdown https:/ /bugs.launchpad .net/juju- verify/ +bug/1913700 . As such, it makes more sense to fetch hypervisor list from the unit we are already targeting rather than figuring out which unit is nova-cloud- controller related to the targeted unit.