git://git.onelab.eu
/
bootmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Setting tag bootmanager-4.3-18
[bootmanager.git]
/
source
/
steps
/
GetAndUpdateNodeDetails.py
diff --git
a/source/steps/GetAndUpdateNodeDetails.py
b/source/steps/GetAndUpdateNodeDetails.py
index
a548888
..
950466b
100644
(file)
--- a/
source/steps/GetAndUpdateNodeDetails.py
+++ b/
source/steps/GetAndUpdateNodeDetails.py
@@
-1,4
+1,4
@@
-#!/usr/bin/python
2
+#!/usr/bin/python
# Copyright (c) 2003 Intel Corporation
# All rights reserved.
# Copyright (c) 2003 Intel Corporation
# All rights reserved.
@@
-23,7
+23,6
@@
def Run( vars, log ):
broadcast, netmask, dns1/2, and the hostname/domainname.
Expect the following keys to be set:
broadcast, netmask, dns1/2, and the hostname/domainname.
Expect the following keys to be set:
- BOOT_CD_VERSION A tuple of the current bootcd version
SKIP_HARDWARE_REQUIREMENT_CHECK Whether or not we should skip hardware
requirement checks
SKIP_HARDWARE_REQUIREMENT_CHECK Whether or not we should skip hardware
requirement checks
@@
-48,10
+47,6
@@
def Run( vars, log ):
# make sure we have the variables we need
try:
# make sure we have the variables we need
try:
- BOOT_CD_VERSION= vars["BOOT_CD_VERSION"]
- if BOOT_CD_VERSION == "":
- raise ValueError, "BOOT_CD_VERSION"
-
SKIP_HARDWARE_REQUIREMENT_CHECK= vars["SKIP_HARDWARE_REQUIREMENT_CHECK"]
if SKIP_HARDWARE_REQUIREMENT_CHECK == "":
raise ValueError, "SKIP_HARDWARE_REQUIREMENT_CHECK"
SKIP_HARDWARE_REQUIREMENT_CHECK= vars["SKIP_HARDWARE_REQUIREMENT_CHECK"]
if SKIP_HARDWARE_REQUIREMENT_CHECK == "":
raise ValueError, "SKIP_HARDWARE_REQUIREMENT_CHECK"
@@
-78,6
+73,7
@@
def Run( vars, log ):
['boot_state', 'nodegroup_ids', 'interface_ids', 'model', 'site_id']))[0]
vars['BOOT_STATE']= node_details['boot_state']
['boot_state', 'nodegroup_ids', 'interface_ids', 'model', 'site_id']))[0]
vars['BOOT_STATE']= node_details['boot_state']
+ vars['RUN_LEVEL']= node_details['boot_state']
vars['NODE_MODEL']= string.strip(node_details['model'])
vars['SITE_ID'] = node_details['site_id']
log.write( "Successfully retrieved node record.\n" )
vars['NODE_MODEL']= string.strip(node_details['model'])
vars['SITE_ID'] = node_details['site_id']
log.write( "Successfully retrieved node record.\n" )