[pve-devel] [PATCH ha-manager] Config: add get_service_status method

Dietmar Maurer dietmar at proxmox.com
Mon Apr 18 16:24:57 CEST 2016


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




More information about the pve-devel mailing list