-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
In our help docs we use lowercase for the .credentials section name suggestions, which results in an error on first run due to the default lookup being set to DEFAULT.
app = Application('verademo-java')
Traceback (most recent call last):
File "/Users/ccampbell/.pyenv/versions/3.9.0/lib/python3.9/configparser.py", line 789, in get
value = d[option]
File "/Users/ccampbell/.pyenv/versions/3.9.0/lib/python3.9/collections/__init__.py", line 941, in __getitem__
return self.__missing__(key) # support subclasses that define __missing__
File "/Users/ccampbell/.pyenv/versions/3.9.0/lib/python3.9/collections/__init__.py", line 933, in __missing__
raise KeyError(key)
KeyError: 'veracode_api_key_id'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/ccampbell/Source/Veracode/veracode-python/veracode/application.py", line 22, in __new__
return ExistingApplication(name, sandbox, build)
File "/Users/ccampbell/Source/Veracode/veracode-python/veracode/application.py", line 146, in __init__
self.info = self._get_app_by_name(app_name).application
File "/Users/ccampbell/Source/Veracode/veracode-python/veracode/application.py", line 179, in _get_app_by_name
apps = SDK.upload.GetAppList()
File "/Users/ccampbell/Source/Veracode/veracode-python/veracode/SDK/upload.py", line 14, in __init__
super(GetAppList, self).__init__(
File "/Users/ccampbell/Source/Veracode/veracode-python/veracode/SDK/core.py", line 41, in __init__
res = getattr(getattr(getattr(API, module),cls),fn)(**args)
File "/Users/ccampbell/Source/Veracode/veracode-python/veracode/API/upload.py", line 15, in get
return self().GET(args, format='text')
File "/Users/ccampbell/Source/Veracode/veracode-python/veracode/API/upload.py", line 11, in __init__
super(GetAppList, self).__init__('getapplist.do', 5.0)
File "/Users/ccampbell/Source/Veracode/veracode-python/veracode/API/core.py", line 31, in __init__
self.__api_id = conf.get(self.profile, 'VERACODE_API_KEY_ID')
File "/Users/ccampbell/.pyenv/versions/3.9.0/lib/python3.9/configparser.py", line 792, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'veracode_api_key_id' in section: 'DEFAULT'
Metadata
Metadata
Assignees
Labels
No labels