Skip to content

Commit d5c8db5

Browse files
committed
Fix regex for SSH keys
Comments on SSH public keys can contain spaces. With this change the the workload generator will no longer choke on such keys. Signed-off-by: Max Harmathy <[email protected]>
1 parent 7f37f76 commit d5c8db5

File tree

1 file changed

+1
-1
lines changed
  • src/openstack_workload_generator/entities

1 file changed

+1
-1
lines changed

src/openstack_workload_generator/entities/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def get_project_ipv4_subnet() -> str:
175175

176176
@staticmethod
177177
def get_admin_vm_ssh_key() -> str:
178-
return Config.get("admin_vm_ssh_key", r"ssh-\S+\s\S+\s\S+", multi_line=True)
178+
return Config.get("admin_vm_ssh_key", r"ssh-\S+\s\S+(\s\S+)+", multi_line=True)
179179

180180
@staticmethod
181181
def get_admin_domain_password() -> str:

0 commit comments

Comments
 (0)