HyperVDsc
HyperVDsc copied to clipboard
VhdFileDirectory - improvements and fixes to Content files
Pull Request (PR) description
- Added ContentEncoding property to properly support Content files (otherwise they are always written as Unicode) which corrupts some content types like UTF-8 XMLs.
- Content files are not tested with ItemHasChanged (this didn't work anyway).
- Fixed GetItemToCopy where an undefined DefaultValues array was used instead of DesiredProperties, resulting in a dead code, impacting properties like Force.
- After #3 is fixed and the code is finally execuded, it would crash if a file is a Content (without SourcePath).
- In SetVHDFile , Copy-Item's ErrorAction is set to Stop. Otherwise, the resource would simply ignore all errors and produce invalid configuration.
This Pull Request (PR) fixes the following issues
None
Codecov Report
Merging #179 into dev will decrease coverage by
<1%. The diff coverage is0%.
@@ Coverage Diff @@
## dev #179 +/- ##
===================================
- Coverage 73% 73% -1%
===================================
Files 11 11
Lines 1401 1402 +1
===================================
Hits 1035 1035
- Misses 366 367 +1
Hi Dmitry, can you please open an issue for this feature so that we have more context? Also, could you add appropriate tests for the new functionality please? Thanks for the contribution!
We have renamed the resource, removing 'x', so please rebase this PR.