In reply to ccelie:
What is
spi_env_config
?
You are declring a variable of this type, but you do not assign a value before performing the set to the config_db.
If spi_env_config is a class then you are passing to the config_db ‘null’.
This might cause errors when performing the get.