Re: [PATCH] Fixed for the case when dhcp is turned off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxx wrote:
From: Ben Riggs <rigg0022@xxxxxxx>

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

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux