[pve-devel] [PATCH 2/4] Use new exitcodes instead of integers

Dietmar Maurer dietmar at proxmox.com
Thu Oct 29 07:57:35 CET 2015


> @@ -554,7 +555,7 @@ sub next_state_started {
>  
>  	    my $try_next = 0;
>  	    if ($lrm_res) {
> -		if ($lrm_res->{exit_code} == 1) {
> +		if ($lrm_res->{exit_code} == ERROR) {

It is a bit unclear what happen if we get other error codes here?

>  
>  		    my $try = $master_status->{relocate_trial}->{$sid} || 0;
>  
> @@ -575,7 +576,7 @@ sub next_state_started {
>  			return;
>  
>  		    }
> -		} elsif ($lrm_res->{exit_code} == 0) {
> +		} elsif ($lrm_res->{exit_code} == SUCCESS) {
>  		    $master_status->{relocate_trial}->{$sid} = 0;
>  		}
>  	    }
> -- 




More information about the pve-devel mailing list