Closed MikeSchiessl closed 2 years ago
QuickFix:
Please watch out to specify the section exactly the same way (case sensitivity) as you have specified it in your .edgerc file.
That seems to follow the original specs: https://docs.python.org/3.10/library/configparser.html#supported-ini-file-structure
By default, section names are case sensitive but keys are not.
@bitonio - agreed and actually being case sensitive would be awesome, but then this could not happen at all:
.edgerc
[default]
host=aka-....
...
command
bin/uls.py -i etp -f threat -o raw --loglevel debug --edgerc /opt/akamai-uls/my-edge --section DEFAULT
...
ULS D Section 'DEFAULT' found.
ULS C Required configuration value 'host' not found in section / file. Please see: .....
So this is the mismatch that broke my nose today ;)
added to FAQ in v. 1.3.2 / 1.3.3
Describe the bug When running ULS with the section specified in UPPERCASE e.g.
ULS_SECTION=DEFAULT
but specified the section name within the .edgerc lowercase[default]
, config parser seems to be able to find the section but the config value (e.g. 'host') cannot be found.ULS will return something weird like this:
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
ULS Version output
please run the following and attach the output here.
Additional context
Seems to be a bug inside the configparser module - we will need to dig into this little deeper. As "QuickFix" and for reference, I'll create a FAQ entry and leave this issue as reference.