Revize 3260320c
Přidáno uživatelem Michal Seják před téměř 4 roky(ů)
src/controllers/certificates_controller.py | ||
---|---|---|
119 | 119 |
return E_WRONG_PARAMETERS, C_BAD_REQUEST |
120 | 120 |
|
121 | 121 |
for v in body[USAGE]: # for each usage |
122 |
if v not in CertController.KEY_MAP: # check that it is a valid usage
|
|
122 |
if v not in CertController.USAGE_KEY_MAP: # check that it is a valid usage
|
|
123 | 123 |
Logger.error(f"Invalid request, wrong parameter '{USAGE}'[{v}].") |
124 | 124 |
return E_WRONG_PARAMETERS, C_BAD_REQUEST # and throw if it is not |
125 |
usages_dict[CertController.KEY_MAP[v]] = True # otherwise translate key and set
|
|
125 |
usages_dict[CertController.USAGE_KEY_MAP[v]] = True # otherwise translate key and set
|
|
126 | 126 |
|
127 | 127 |
if KEY in body: |
128 | 128 |
if isinstance(body[KEY], dict): |
Také k dispozici: Unified diff
Re #8705 - Fixed a merge conflict.