mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +00:00
Fix scope of hm attributes in bmcconfig
This commit is contained in:
parent
dd4d7ded74
commit
a126270570
@ -78,6 +78,7 @@ def handle_request(env, start_response):
|
||||
reqbody = env['wsgi.input'].read(int(env['CONTENT_LENGTH']))
|
||||
if env['PATH_INFO'] == '/self/bmcconfig':
|
||||
hmattr = cfg.get_node_attributes(nodename, 'hardwaremanagement.*')
|
||||
hmattr = hmattr.get(nodename, {})
|
||||
res = {}
|
||||
port = hmattr.get('hardwaremanagement.port', {}).get('value', None)
|
||||
if port is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user