Permalink
Browse files

frontend/afe: add support for do_not_install profile

Insert a dummy profile name in the Python code so that the end user can
indicate no installation should occur before the job runs.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
  • Loading branch information...
Nishanth Aravamudan authored and lmr committed May 15, 2012
1 parent c9227b6 commit 797ace6be0052cfe0565859f12492ad0d2a9d5c7
Showing with 2 additions and 1 deletion.
  1. +1 −0 frontend/afe/rpc_interface.py
  2. +1 −1 server/hosts/remote.py
@@ -236,6 +236,7 @@ def get_hosts(multiple_labels=(), exclude_only_if_needed_labels=False,
profile_params = {"comment":"*%s*" % host_dict['platform']}
profiles = install_server.find_profile(profile_params)
host_dict['profiles'] = profiles
+ host_dict['profiles'].insert(0, 'Do_not_install')
host_dict['current_profile'] = system['profile']
if error_encountered:
View
@@ -87,7 +87,7 @@ def machine_install(self, profile='', timeout=None):
if install_server_is_configured():
if not profile:
profile = self.profile
- if not profile:
+ if not profile or profile == 'Do_not_install':
return
num_attempts = int(server_info.get('num_attempts', 2))
ServerInterface = self.INSTALL_SERVER_MAPPING[server_info['type']]

0 comments on commit 797ace6

Please sign in to comment.