Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
michaeltlombardi opened this issue Nov 14, 2023 · 0 comments · Fixed by #322
Closed
3 tasks done
Assignees
Labels
Issue-Bug Something isn't working

Comments

@michaeltlombardi
Copy link
Collaborator

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

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

fn accepted_arg_types(&self) -> Vec<AcceptedArgKind> {
vec![AcceptedArgKind::String, AcceptedArgKind::Integer]
}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants