Skip to content

Commit

Permalink
Updated strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jbristowe committed Nov 16, 2020
1 parent 9da5157 commit 18b8de3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions octopusdeploy/data_source_variables.go
Expand Up @@ -51,12 +51,12 @@ var schemaVariableScope = &schema.Schema{
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
constEnvironments: schemaVariableScopeValue,
constMachines: schemaVariableScopeValue,
constActions: schemaVariableScopeValue,
constRoles: schemaVariableScopeValue,
constChannels: schemaVariableScopeValue,
"tenant_tags": schemaVariableScopeValue,
"environments": schemaVariableScopeValue,
"machines": schemaVariableScopeValue,
"actions": schemaVariableScopeValue,
"roles": schemaVariableScopeValue,
"channels": schemaVariableScopeValue,
"tenant_tags": schemaVariableScopeValue,
},
},
}
Expand All @@ -81,11 +81,11 @@ func tfVariableScopetoODVariableScope(d *schema.ResourceData) *octopusdeploy.Var
// Use the getSliceFromTerraformTypeList helper to convert the data from the map into []string and
// assign as the variable scopes we need
var newScope octopusdeploy.VariableScope
newScope.Environment = getSliceFromTerraformTypeList(tfSchemaList[constEnvironments])
newScope.Action = getSliceFromTerraformTypeList(tfSchemaList[constActions])
newScope.Role = getSliceFromTerraformTypeList(tfSchemaList[constRoles])
newScope.Channel = getSliceFromTerraformTypeList(tfSchemaList[constChannels])
newScope.Machine = getSliceFromTerraformTypeList(tfSchemaList[constMachines])
newScope.Environment = getSliceFromTerraformTypeList(tfSchemaList["environments"])
newScope.Action = getSliceFromTerraformTypeList(tfSchemaList["actions"])
newScope.Role = getSliceFromTerraformTypeList(tfSchemaList["roles"])
newScope.Channel = getSliceFromTerraformTypeList(tfSchemaList["channels"])
newScope.Machine = getSliceFromTerraformTypeList(tfSchemaList["machines"])
newScope.TenantTag = getSliceFromTerraformTypeList(tfSchemaList["tenant_tags"])

return &newScope
Expand Down

0 comments on commit 18b8de3

Please sign in to comment.