From a12627057018c046d1aee19783fb3e19be19d34c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 14 Aug 2020 16:05:46 -0400 Subject: [PATCH] Fix scope of hm attributes in bmcconfig --- confluent_server/confluent/selfservice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_server/confluent/selfservice.py b/confluent_server/confluent/selfservice.py index f81138e8..15687d21 100644 --- a/confluent_server/confluent/selfservice.py +++ b/confluent_server/confluent/selfservice.py @@ -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: