Skip to content

Commit

Permalink
Allow dashes in legacy role namespaces (#3962)
Browse files Browse the repository at this point in the history
Co-authored-by: Sorin Sbarnea <[email protected]>
  • Loading branch information
sur5r and ssbarnea authored Jan 11, 2024
1 parent 322cde1 commit 974c54d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion src/ansiblelint/schemas/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@
"namespace": {
"markdownDescription": "Used by molecule and ansible-lint to compute FQRN for roles outside collections",
"minLength": 2,
"pattern": "^[a-z][a-z0-9_]+$",
"pattern": "^[a-z][a-z0-9_-]+$",
"title": "Namespace Name",
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@
"failingKeyword": "then"
},
"schemaPath": "#/allOf/0/if"
},
{
"instancePath": "/galaxy_info/namespace",
"keyword": "pattern",
"message": "must match pattern \"^[a-z][a-z0-9_]+$\"",
"params": {
"pattern": "^[a-z][a-z0-9_]+$"
},
"schemaPath": "#/properties/namespace/pattern"
}
]
```
Expand All @@ -46,12 +37,6 @@ stdout:
"path": "$.galaxy_info",
"message": "'author' is a required property",
"has_sub_errors": false
},
{
"filename": "negative_test/roles/meta_invalid_role_namespace/meta/main.yml",
"path": "$.galaxy_info.namespace",
"message": "'foo-bar' does not match '^[a-z][a-z0-9_]+$'",
"has_sub_errors": false
}
],
"parse_errors": []
Expand Down

0 comments on commit 974c54d

Please sign in to comment.