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

Merge-DatumArray doesn't always return an array #122

Open
ykuijs opened this issue Sep 21, 2021 · 1 comment
Open

Merge-DatumArray doesn't always return an array #122

ykuijs opened this issue Sep 21, 2021 · 1 comment

Comments

@ykuijs
Copy link
Contributor

ykuijs commented Sep 21, 2021

During some testing I found that the Merge-DatumArray function doesn't always return an array, but an OrderedDictionary. This results in an error when the next level is merged and Datum throwing the error:
Write-Warning -Message "Cannot merge different types in path '$StartingPath' REF:[hashtable] | DIFF:[hash_array] , returning most specific Datum."

I tracked down this issue to this line:

By adding a , (comma) in front, the function will return an array:

    , $mergedArray
@raandree
Copy link
Contributor

@ykuijs, as mentioned I and @nyanhp have never observed this. Can you give us some data to reproduce this, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants