Commit 232a07e4 authored by Pedro Duarte's avatar Pedro Duarte
Browse files

rename variables because of arg collision

parent 98e55d31
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -30,10 +30,10 @@ class DictHelper:
    def get_namespaces(self, name) -> str:
        return self._read().get('namespaces', {}).get(name)
        
    def get_path(self, name, **kwargs) -> str:
        path_details = self._read().get('paths', {}).get(name)
    def get_path(self, key, **kwargs) -> str:
        path_details = self._read().get('paths', {}).get(key)
        if not path_details:
            raise KeyError(f"Path '{name}' not found in configuration")
            raise KeyError(f"Path '{key}' not found in configuration")

        path : str = path_details.get('path')
        namespace = path_details.get('namespace')
@@ -93,7 +93,7 @@ class DictHelper:
        
        return namespace, path
    
    def get_resource_key(self, name, **kwargs) -> str:
    def get_resource_key(self, key, **kwargs) -> str:
        """
        Get device-specific resource key path.
        
@@ -104,9 +104,9 @@ class DictHelper:
        Returns:
            Formatted resource key path
        """
        resource_key_details = self._read().get('resource_keys', {}).get(name)
        resource_key_details = self._read().get('resource_keys', {}).get(key)
        if not resource_key_details:
            raise KeyError(f"Resource key '{name}' not found in configuration")
            raise KeyError(f"Resource key '{key}' not found in configuration")
        
        path = resource_key_details.get('path')
        if kwargs: