amenezes / config-client

config-client package for spring cloud config and cloud foundry
https://config-client.amenezes.net/
Apache License 2.0
24 stars 18 forks source link

Documentation Issue: get_attribute method exists in config_client, not config dictionary #16

Closed amitga closed 5 years ago

amitga commented 5 years ago

At: https://github.com/amenezes/config-client#using-standard-client It is stated that get_attribute method can be used:

# option 3: using get_attribute method
config_client.config.get_attribute('spring.cloud.consul.port')

but config_client.config is a dictionary, and doesn't have that method. It should be fixed to:

# option 3: using get_attribute method
config_client.get_attribute('spring.cloud.consul.port')
amenezes commented 5 years ago

@amitga-rnd thanks for your observation.

The fixes will be available on next release.