The library is failing for 3.x config server service instances (p.config-server).
I tried your suggestion from issue #35 as below but it still does not work.
from config.cf import CF
from config.cfenv import CFenv
cf = CF(cfenv=CFenv(vcap_service_prefix="p.config-server"))
cf.get_config()
The issue appears to be with the path supplied to glom for accessing credentials from vcap_services. Due to a dot in the service prefix name (p.config-server), glom expands path to the json properties incorrectly (like "p.config-server.0.credentials.uri") and is unable to read the value.
Updating _format_vcap_path function in cfenv.py as below would address the problem.
The library is failing for 3.x config server service instances (p.config-server).
I tried your suggestion from issue #35 as below but it still does not work.
The issue appears to be with the path supplied to glom for accessing credentials from vcap_services. Due to a dot in the service prefix name (p.config-server), glom expands path to the json properties incorrectly (like "p.config-server.0.credentials.uri") and is unable to read the value.
Updating
_format_vcap_path
function in cfenv.py as below would address the problem.