If we passed no profile to the install server and we don't have a fallback profile set, then don't try to set the machine profile and instead just go with what is currently set to the machine in the cobbler server.
Thanks to Nishanth Aravamudan <[email protected]> for reporting the problem and pointing out a solution. Signed-off-by: Lucas Meneghel Rodrigues <[email protected]> --- server/hosts/install_server.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/server/hosts/install_server.py b/server/hosts/install_server.py index e17549b..b686f24 100644 --- a/server/hosts/install_server.py +++ b/server/hosts/install_server.py @@ -85,7 +85,9 @@ class CobblerInterface(object): system_info = self.server.get_system(system) current_profile = system_info.get('profile') - if profile != current_profile: + # If no fallback profile is enabled, we don't want to mess + # with the currently profile set for that machine. + if profile and (profile != current_profile): self.server.modify_system(system_handle, 'profile', profile, self.token) -- 1.7.7.6 _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
