Skip to content

Commit

Permalink
Correcting parameter type for fn::join value to encode
Browse files Browse the repository at this point in the history
A string type incorrectly flattened any complex parameter such as an
array or hashtable; and object preserves any complex structure that
needs to be passed on to the resultant JSON.
  • Loading branch information
ebekker committed May 4, 2016
1 parent 31df62f commit 45fb9c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AwsCfn/CfnIntrinsicFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function
#>
param(
[Parameter(Mandatory,Position=0)]
[string]$ValueToEncode
[object]$ValueToEncode
)

return @{ "Fn::Base64" = $ValueToEncode }
Expand Down Expand Up @@ -92,8 +92,8 @@ http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function
#>
[CmdletBinding(DefaultParameterSetName="Values")]
param(
[Parameter(Mandatory,Position=0)]
[object]$Delimiter,
[Parameter(Position=0)]
[object]$Delimiter='',
[Parameter(Mandatory,Position=1,ParameterSetName="Values")]
[array]$Values=@(),
[Parameter(Mandatory,Position=1,ParameterSetName="ValuesRef")]
Expand Down

0 comments on commit 45fb9c2

Please sign in to comment.