guitarrapc / GraniResource

PowerShell Desired State Configuration Resources for real production workload.
https://www.powershellgallery.com/packages/GraniResource
MIT License
44 stars 8 forks source link

fix Fazzy Matching for cS3Content Get/Test. #68

Closed guitarrapc closed 7 years ago

guitarrapc commented 7 years ago

Previously cS3Content Get/Test results object[] for hash comparison. This is due to spec of Get-S3Object Cmdlet offered by AWSPowerShell Module.

This fix will determine only 1 key and will successfully compare hash as string, not as object[].

Reproduce case

on s3 place 2 files.

  1. .hoge
  2. hoge_test

even you want to download .hoge, but Get-S3Object will return both .hoge and .hoge_test as object[].