[EMAIL PROTECTED] wrote:
> From: Marcel Haerry <[EMAIL PROTECTED]>
>
> If you just "and" the string-variable it will always be true,
> threfor we need to compare it as a string.
>
> Signed-off-by: Marcel Haerry <[EMAIL PROTECTED]>
> ---
>  triggers/restart-services.trigger |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/triggers/restart-services.trigger 
> b/triggers/restart-services.trigger
> index 6eac017..38e94e7 100644
> --- a/triggers/restart-services.trigger
> +++ b/triggers/restart-services.trigger
> @@ -33,7 +33,7 @@ if manage_dhcp != "0":
>          print "- error: unknown DHCP engine: %s" % bootapi.dhcp.what()
>          rc = 411
>  
> -if manage_dns != "0" and restart_dns:
> +if manage_dns != "0" and restart_dns != "0":
>      if bootapi.dns.what() == "bind":
>          rc = os.system("/sbin/service named restart")
>      elif bootapi.dns.what() == "dnsmasq" and not has_restarted_dnsmasq:
>   

Applied to devel and stable, thanks!

--Michael


_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to