From 5a3b9248de1c97ab762f641e3efb3bb4cf21c037 Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Tue, 31 Jan 2023 12:12:15 +0000
Subject: [PATCH] Device component:

- improved translation of raw config rules from drivers to update device config
---
 src/device/service/Tools.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/device/service/Tools.py b/src/device/service/Tools.py
index c17bed0b7..04ece2888 100644
--- a/src/device/service/Tools.py
+++ b/src/device/service/Tools.py
@@ -136,6 +136,7 @@ def _raw_config_rules_to_grpc(
             continue
 
         resource_value = json.loads(resource_value) if isinstance(resource_value, str) else resource_value
+        if resource_value is None: resource_value = {}
         resource_value = {field_name : (field_value, False) for field_name,field_value in resource_value.items()}
         update_config_rule_custom(device_config.config_rules, resource_key, resource_value, new_action=config_action)
 
-- 
GitLab