2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-29 04:50:21 +00:00

Fix scope of hm attributes in bmcconfig

This commit is contained in:
Jarrod Johnson 2020-08-14 16:05:46 -04:00
parent dd4d7ded74
commit a126270570

View File

@ -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: