From: Cleber Rosa <[email protected]>

This way we'll try to guarantee that the changes made
on the system state will be made active after the DHCP
sync.

Signed-off-by: Cleber Rosa <[email protected]>
---
 server/hosts/install_server.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/server/hosts/install_server.py b/server/hosts/install_server.py
index 7ede52c..d88f7af 100644
--- a/server/hosts/install_server.py
+++ b/server/hosts/install_server.py
@@ -76,6 +76,7 @@ class CobblerInterface(object):
         # reinstalled)
         self.server.modify_system(system_handle, 'netboot_enabled', 'True',
                                   self.token)
+        self.server.save_system(system_handle, self.token)
         try:
             # Cobbler only generates the DHCP configuration for netboot enabled
             # machines, so we need to synchronize the dhcpd file after changing
@@ -87,8 +88,6 @@ class CobblerInterface(object):
                 logging.error("DHCP sync failed, error code: %s, error string: 
%s",
                               err.faultCode, err.faultString)
 
-        self.server.save_system(system_handle, self.token)
-
 
     def install_host(self, host, profile='', timeout=None, num_attempts=2):
         """
-- 
1.7.11.4

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to