Azure / nxtools

Azure Automanage Machine Configuration Linux DSC resources
Other
13 stars 11 forks source link

Fix minor bugs in nxFile and nxFileLine #21

Closed gurrajatwal closed 1 year ago

gurrajatwal commented 1 year ago

Pull Request (PR) description

Fixed two small bugs I found in nxFile and nxFileLine. For nxFile, the Test function was always returning False because we were comparing against an array rather than a count. For nxFileLine, a customer was trying to create a custom package based on nxFileLine and, when using the GuestConfiguration module to evaluate their package, they saw an error: "unknown propertyName:LinePattern". This was fixed by adding [DscProperty()] to the $AddLineMode and $LinePattern properties.

This Pull Request (PR) fixes the following issues

None

Task list