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
the extensions node tag
[bootmanager.git]
/
source
/
BootAPI.py
diff --git
a/source/BootAPI.py
b/source/BootAPI.py
index
8bb3c26
..
7d5a5cb
100644
(file)
--- a/
source/BootAPI.py
+++ b/
source/BootAPI.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.
@@
-33,7
+33,7
@@
def create_auth_structure( vars, call_params ):
try:
auth['node_id'] = vars['NODE_ID']
try:
auth['node_id'] = vars['NODE_ID']
- auth['node_ip'] = vars['
NETWORK
_SETTINGS']['ip']
+ auth['node_ip'] = vars['
INTERFACE
_SETTINGS']['ip']
except KeyError, e:
return None
except KeyError, e:
return None
@@
-45,18
+45,17
@@
def create_auth_structure( vars, call_params ):
auth['value']= node_hmac
try:
auth_session = {}
auth['value']= node_hmac
try:
auth_session = {}
- if not vars.has_key('SESSION'):
+ if not vars.has_key('
NODE_
SESSION'):
session = vars['API_SERVER_INST'].GetSession(auth)
auth_session['session'] = session
session = vars['API_SERVER_INST'].GetSession(auth)
auth_session['session'] = session
- vars['SESSION'] = session
+ vars['
NODE_
SESSION'] = session
else:
else:
- auth_session['session'] = vars['SESSION']
+ auth_session['session'] = vars['
NODE_
SESSION']
auth_session['AuthMethod'] = 'session'
auth = auth_session
except Exception, e:
print e
pass
auth_session['AuthMethod'] = 'session'
auth = auth_session
except Exception, e:
print e
pass
- print auth
return auth
return auth