If no fallback profile is defined, 'profile' remains None and results in
messages like:

Installing machine elm3b202.beaverton.ibm.com with profile  (timeout 3600 s)

Signed-off-by: Nishanth Aravamudan <[email protected]>

diff --git a/server/hosts/install_server.py b/server/hosts/install_server.py
index b686f24..5eb4ae3 100644
--- a/server/hosts/install_server.py
+++ b/server/hosts/install_server.py
@@ -90,6 +90,8 @@ class CobblerInterface(object):
             if profile and (profile != current_profile):
                 self.server.modify_system(system_handle, 'profile', profile,
                                           self.token)
+            else:
+                profile = current_profile
 
             # Enable netboot for that machine (next time it'll reboot and be
             # reinstalled)
-- 
Nishanth Aravamudan <[email protected]>
IBM Linux Technology Center

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to