@@ -88,6 +88,7 @@ func (c DeploymentProcessConverter) toHcl(resource octopus.DeploymentProcess, re
88
88
Condition : s .Condition ,
89
89
StartTrigger : s .StartTrigger ,
90
90
Action : make ([]terraform.TerraformAction , len (s .Actions )),
91
+ TargetRoles : c .getRoles (s .Properties ),
91
92
}
92
93
93
94
for j , a := range s .Actions {
@@ -118,7 +119,6 @@ func (c DeploymentProcessConverter) toHcl(resource octopus.DeploymentProcess, re
118
119
RunOnServer : c .getRunOnServer (a .Properties ),
119
120
Properties : c .removeUnnecessaryFields (c .replaceIds (c .escapeDollars (sanitizer2 .SanitizeMap (a .Properties )), dependencies )),
120
121
Features : c .getFeatures (a .Properties ),
121
- TargetRoles : c .getRoles (a .Properties ),
122
122
}
123
123
124
124
for k , p := range a .Packages {
@@ -301,7 +301,7 @@ func (c DeploymentProcessConverter) getFeatures(properties map[string]any) []str
301
301
return []string {}
302
302
}
303
303
304
- func (c DeploymentProcessConverter ) getRoles (properties map [string ]any ) []string {
304
+ func (c DeploymentProcessConverter ) getRoles (properties map [string ]string ) []string {
305
305
f , ok := properties ["Octopus.Action.TargetRoles" ]
306
306
if ok {
307
307
return strings .Split (fmt .Sprint (f ), "," )
0 commit comments