Skip to content

[Bug Report]: description of child resources does not always end with a . #2444

@SeSeicht

Description

@SeSeicht

Describe the bug

for example the roleAssignments description ooften does not have a . (dot) at the end. This is only required for root modules but to be consistent we should follow the same for child modules

To reproduce

https://github.com/Azure/ResourceModules/blob/main/modules/Microsoft.AAD/DomainServices/.bicep/nested_roleAssignments.bicep#L24

Simple regex to solve this:
(^@(?:sys\.)?description.+[^\.])'\)
$1.')

Code snippet

@sys.description('Optional. The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase "foo_storage_container"')

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions