In reply to desperadorocks:
I recommend that you change your methodology.
One of the main purposes of the test is to create and configure all of the configuration objects for your environment(s) and the sub-agent(s) of the environment(s). Every configuration variable of these objects should be set by the test, and the configuration objects passed to the environment(s) using the config_db().
I don’t understand why you would create a configuration object, then try to use the config_db() to get a variable inside the configuration object from the config_db(). Just use the test and set each variable appropriately.
In your example, why would you try and pass num_agents using the config_db() instead of just setting the variable in the environment(s) config object(s) directly?