[et-mgmt-tools] [PATCH] Fixed for the case when dhcp is turned off.

Simeon Berkley sberkley at mcclatchyinteractive.com
Tue Oct 23 14:10:47 UTC 2007


I tried the patch and it still errored out until I changed the 'rc = ""' to 'rc 
= 0'. I'm brand new to cobbler (and a green python scripter) so I may not know 
what I'm tinkering with though ;-).

Riggs at artemis.math.umn.edu wrote:
> From: Ben Riggs <rigg0022 at umn.edu>
> 
> ---
>  triggers/restart-services.trigger |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/triggers/restart-services.trigger b/triggers/restart-services.trigger
> index 98d478b..6a44500 100644
> --- a/triggers/restart-services.trigger
> +++ b/triggers/restart-services.trigger
> @@ -17,5 +17,7 @@ if manage_dhcp != "0":
>      else:
>          print "- error: unknown DHCP engine: %s" % manage_dhcp_mode
>          rc = 411
> +else:
> +    rc = ""
>  
>  sys.exit(rc)


-- 
S i m e o n  B e r k l e y

Systems Engineer
Mcclatchy Interactive




More information about the et-mgmt-tools mailing list