Skip to content

Commit

Permalink
Allow dashes in role namespaces (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
sur5r authored Feb 27, 2024
1 parent 23c030a commit f6b7173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansible_compat/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ def _install_galaxy_role(
fqrn = _get_role_fqrn(galaxy_info, project_dir)

if role_name_check in [0, 1]:
if not re.match(r"[a-z0-9][a-z0-9_]+\.[a-z][a-z0-9_]+$", fqrn):
if not re.match(r"[a-z0-9][a-z0-9_-]+\.[a-z][a-z0-9_]+$", fqrn):
msg = MSG_INVALID_FQRL.format(fqrn)
if role_name_check == 1:
_logger.warning(msg)
Expand Down

0 comments on commit f6b7173

Please sign in to comment.