Depending on your environment, you may not have access to Cobbler to
always manipulate the profile comments. Also, you may not want to ever
limit the user from selecting a profile, and the filtered search is
slower than just grabbing them all. So, for now, simply grab all defined
profiles.

Eventually (working on it now), we should provide an extensible way to
filter the profiles.

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

diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index beb7746..f1fd1e5 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -234,8 +234,7 @@ def get_hosts(multiple_labels=(), 
exclude_only_if_needed_labels=False,
 
                 if host_dict['platform']:
                     error_encountered = False
-                    profile_params = {"comment":"*%s*" % host_dict['platform']}
-                    profiles = install_server.find_profile(profile_params)
+                    profiles = sorted(install_server.get_item_names('profile'))
                     host_dict['profiles'] = profiles
                     host_dict['profiles'].insert(0, 'Do_not_install')
                     host_dict['current_profile'] = system['profile']

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

Reply via email to