nutanix / calm-dsl

Keep Calm and DSL On!
https://nutanix.github.io/calm-dsl/
Apache License 2.0
32 stars 51 forks source link

Password with % is not supported #169

Closed pipoe2h closed 2 years ago

pipoe2h commented 3 years ago

If the user password for configuring DSL includes %, any command fails because DSL is not escaping the character.

configparser.InterpolationSyntaxError: '%' must be followed by '%' or '('

It can be escaped in the ini file with duplicating the character %%. The other solution that I have tested and works is moving from ConfigParser to RawConfigParser in the following files:

My preference is the second method and not have to escape it in the ini file.

Note: % is accepted as character by PC user creation as well as Calm SaaS API key and other third parties

abhijeetkaurav1st commented 2 years ago

Fixed as per https://github.com/nutanix/calm-dsl/pull/228