cisco-en-programmability / dnacentersdk

Cisco DNA Center Python SDK
https://dnacentersdk.readthedocs.io/en/latest/
MIT License
70 stars 31 forks source link

Typo in value field data[0].authenticationOrder #146

Closed itsthekraken closed 1 month ago

itsthekraken commented 5 months ago

Prerequisites

Describe the bug When using the Update_default_authentication_profile call i get the following error: dnacentersdk.exceptions.MalformedRequest: [{'siteNameHierarchy': 'Global/Test-site', 'authenticateTemplateName': 'Closed Authentication', 'authenticationOrder': 'dot1x', 'dot1xToMabFallbackTimeout': '18', 'wakeOnLan': True, 'numberOfHosts': 'Single'}] is invalid. Reason: data[0].authenticationOrder must be one of ['dot1x ', 'mac']

Please note the space after dot1x. The requirement is to have a space at the end of the string.

Expected behavior To update the authentication profile without have to end a string with a space character

Environment (please complete the following information):

bvargasre commented 1 month ago

Hi @itsthekraken, the problem should have been fixed with the new version of dnacentersdk 2.7.1 I will close the issue, in case the problem persists or another one arises feel free to reopen it or open a new issue.