[WIP] Pass global options to deployments
@@ -53,7 +53,11 @@ func (opts InstallationOptions) Merge(toMerge InstallationOptions) InstallationO
func (opts InstallationOptions) GetString(optionName string, deploymentID string) (string, error) {
for _, option := range opts {
- if option.Name == optionName && option.DeploymentID == deploymentID {
+ // TODO: This breaks tests and needs to be implemented correctly
+ // TODO: Fix it in the rest of the methods below
+ suitableForDeployment :=
+ option.DeploymentID == deploymentID || option.DeploymentID == ""
+ if option.Name == optionName && suitableForDeployment {
result, ok := option.Value.(string)
if !ok {
panic("wrong type assertion")
