Skip to content

Commit 75ee8c7

Browse files
authored
Merge pull request #131 from vidispine/fixes-1.30
fix read from json key
2 parents 5780264 + e37efe1 commit 75ee8c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hull-vidispine-addon/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ apiVersion: v1
33
appVersion: 1.30.0
44
description: hull-vidispine-addon
55
name: hull-vidispine-addon
6-
version: 1.30.4
6+
version: 1.30.5

images/hull-integration/Installer.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,14 +1347,14 @@ Class Installer
13471347
if ([string]::IsNullOrWhitespace($entity.readConfigFromFile.key))
13481348
{
13491349
$this.WriteLog("**** No 'key' property provided, mapping full contents of '$($filePath)' to Config")
1350-
$entity.config = $fileContent
1350+
$entity.config = $fileContent
13511351
}
13521352
else
13531353
{
13541354
$this.WriteLog("**** Value '$($entity.readConfigFromFile.key)' provided for 'key' property, mapping content of key from JSON file '$($filePath)' to Config")
13551355
$fileContentJson = $fileContent | ConvertFrom-Json
1356-
$this.WriteLog("**** JSON file content: " + $fileContentJson)
1357-
$entity.config = $fileContentJson.$($entity.readConfigFromFile.key)
1356+
$entity.config = $fileContentJson.$($entity.readConfigFromFile.key) | ConvertTo-Json -Depth 100
1357+
$this.WriteLog("**** JSON file content extracted from key '$($entity.readConfigFromFile.key)': " + $entity.config)
13581358
}
13591359
}
13601360
}

0 commit comments

Comments
 (0)