PowerShell / DSC

This repo is for the DSC v3 project
MIT License
195 stars 24 forks source link

The DSC `concat()` function behaves differently than the ARM `concat()` function #271

Closed michaeltlombardi closed 6 months ago

michaeltlombardi commented 9 months ago

Prerequisites

Steps to reproduce

The implementation of the DSC concat() function accepts integers and strings, concatenating them.

https://github.com/PowerShell/DSC/blob/f6c6fcd9dfb9d11f8724d1c1c2354b66a4deb0ba/dsc_lib/src/functions/concat.rs#L20-L22

The concat() function in ARM templates operates only on strings and arrays, and the input must be either strings or arrays. For strings, it returns a single concatenated string. For arrays, it returns a single concatenated array.

Expected behavior

DSC `concat()` behaves the same as ARM template `concat()`.

Actual behavior

DSC `concat()` supports different concatenating integers and not arrays.

Error details

No response

Environment data

N/A

Version

Latest build from main

Visuals

No response