> +sub get_service_status { > + my ($sid) = @_; > + > + my $status = { managed => 0 }; > + > + if (service_is_ha_managed($sid, undef, 1)) { > + my $cfg = read_resources_config(); Can we avoid to read the same file more than once?