From 42349acc2fa08cadb8d37616d0262838c4629039 Mon Sep 17 00:00:00 2001 From: pengyuesheng Date: Thu, 4 Apr 2019 14:48:40 +0800 Subject: [PATCH] Modify the regex for name on import public key form This patch fix does not match the regex in horizon and nova [1]. The service supports underscores, but the restriction imposed in horizon is different, so the regex is updated. [1] https://github.com/openstack/nova/blob/6ebb2c4cae65cb437e17a8c02fe5174a9825d8e0/nova/compute/api.py#L5674-L5690 Change-Id: Icc5e9c6447253d6087c578ab931b52a923128e38 --- .../static/app/core/keypairs/actions/import.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/static/app/core/keypairs/actions/import.service.js b/openstack_dashboard/static/app/core/keypairs/actions/import.service.js index 4b03b6c7e5..f50386ee5b 100644 --- a/openstack_dashboard/static/app/core/keypairs/actions/import.service.js +++ b/openstack_dashboard/static/app/core/keypairs/actions/import.service.js @@ -49,7 +49,7 @@ "name": { title: gettext("Key Pair Name"), type: "string", - pattern: "^[A-Za-z0-9 -]+$" + pattern: "^[A-Za-z0-9 _-]+$" }, "key_type": { title: gettext("Key Type"),