Package backend :: Package server :: Package action_extra_data :: Module kickstart
[hide private]
[frames] | no frames]

Source Code for Module backend.server.action_extra_data.kickstart

 1  # 
 2  # Copyright (c) 2008--2015 Red Hat, Inc. 
 3  # 
 4  # This software is licensed to you under the GNU General Public License, 
 5  # version 2 (GPLv2). There is NO WARRANTY for this software, express or 
 6  # implied, including the implied warranties of MERCHANTABILITY or FITNESS 
 7  # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 
 8  # along with this software; if not, see 
 9  # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 
10  # 
11  # Red Hat trademarks are not licensed under GPLv2. No permission is 
12  # granted to use or replicate Red Hat trademarks that are incorporated 
13  # in this software or its documentation. 
14  # 
15  # Kickstart-related error handling functions 
16  # 
17   
18  from spacewalk.common import rhnFlags 
19  from spacewalk.common.rhnLog import log_debug 
20  from spacewalk.server.rhnServer import server_kickstart 
21   
22  # the "exposed" functions 
23  __rhnexport__ = ['initiate', 'schedule_sync'] 
24   
25   
26 -def initiate(server_id, action_id, data={}):
27 log_debug(3, action_id) 28 29 action_status = rhnFlags.get('action_status') 30 server_kickstart.update_kickstart_session(server_id, action_id, 31 action_status, kickstart_state='injected', 32 next_action_type='reboot.reboot')
33 34 # This one will never be called 35 36
37 -def schedule_sync(server_id, action_id, data={}):
38 log_debug(3, action_id)
39