cisco-en-programmability / dnacentersdk

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

DNA_CENTER_VERIFY not being imported correctly from the environment #92

Closed ignaciofite closed 1 year ago

ignaciofite commented 1 year ago

Prerequisites

Describe the bug In environment.py the following string:

VERIFY_STRING_ENVIRONMENT_VARIABLE = 'DNA_CENTER_VERIFY_STRING'

doesn't match with the one described on the docs, it should be changed to:

VERIFY_STRING_ENVIRONMENT_VARIABLE = 'DNA_CENTER_VERIFY'

This prevents the SDK from working correctly since the environment variable is not loaded correctly.

Environment (please complete the following information):

ignaciofite commented 1 year ago

It is very strange, whatever I use "DNA_CENTER_VERIFY_STRING" or "DNA_CENTER_VERIFY" it is not working correctly... and it fails.

ignaciofite commented 1 year ago

Thanks for fixing it @fmunozmiranda ! I tested it and works fine.