Allow keypairs to contain a underscore

When manually creating keypairs, underscore are allowed but
when creating keypairs while instanciating an instance, it's
not allowed.  This patch solves this.

Change-Id: I0ad19bd1239b7c9ac18888d84e123e478cf40508
closes-bug: #1775030
This commit is contained in:
Dave Hill 2018-06-04 11:31:00 -04:00
parent e8af344c1b
commit edb1aabc87
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
id="keypair-name"
ng-model="ctrl.keypair"
ng-required="true"
ng-pattern="/^[A-Za-z0-9 -]+$/">
ng-pattern="/^[A-Za-z0-9 _-]+$/">
<span class="help-block"
ng-show="(ctrl.doesKeypairExist() || wizardForm.$invalid) && wizardForm.$dirty">
{$ ctrl.keypairExistsError $}