Comment 3 for bug 894808

Revision history for this message
adapaka bhavaniprasad (adapaka-prasad) wrote :

Hi All,

There are two approaches to follow to block special characters while creating keypair names:

1. To block all special characters, we can use isdigit() or isaplha() functions.

2. We can throw error if the keypair name consists of any of the ".', "/", and "#" characters by hardcoding in keypairs.py file. [Ex: "open.stack","open/stack","open#stack" can be created by nova keypair-add, but cannot be deleted with nova keypair-delete]

Please let me know your comments on the same.

Regards,
adapaka-prasad