> +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?

_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to