File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ type Trigger struct {
58
58
}
59
59
60
60
type TriggerOptions struct {
61
- NoCache string `json:"noCache,omitempty"`
62
- NoCfCache string `json:"noCfCache,omitempty"`
63
- ResetVolume string `json:"resetVolume,omitempty"`
64
- EnableNotifications string `json:"enableNotifications,omitempty"`
61
+ NoCache bool `json:"noCache,omitempty"`
62
+ NoCfCache bool `json:"noCfCache,omitempty"`
63
+ ResetVolume bool `json:"resetVolume,omitempty"`
64
+ EnableNotifications bool `json:"enableNotifications,omitempty"`
65
65
}
66
66
67
67
type RuntimeEnvironment struct {
Original file line number Diff line number Diff line change @@ -693,10 +693,10 @@ func mapResourceToPipeline(d *schema.ResourceData) *cfClient.Pipeline {
693
693
codefreshTrigger .SetVariables (variables )
694
694
if _ , ok := d .GetOk (fmt .Sprintf ("spec.0.trigger.%v.options" , idx )); ok {
695
695
options := cfClient.TriggerOptions {
696
- NoCache : d .Get (fmt .Sprintf ("spec.0.trigger.%v.options.0.no_cache" , idx )).(string ),
697
- NoCfCache : d .Get (fmt .Sprintf ("spec.0.trigger.%v.options.0.no_cf_cache" , idx )).(string ),
698
- ResetVolume : d .Get (fmt .Sprintf ("spec.0.trigger.%v.options.0.reset_volume" , idx )).(string ),
699
- EnableNotifications : d .Get (fmt .Sprintf ("spec.0.trigger.%v.options.0.enable_notifications" , idx )).(string ),
696
+ NoCache : d .Get (fmt .Sprintf ("spec.0.trigger.%v.options.0.no_cache" , idx )).(bool ),
697
+ NoCfCache : d .Get (fmt .Sprintf ("spec.0.trigger.%v.options.0.no_cf_cache" , idx )).(bool ),
698
+ ResetVolume : d .Get (fmt .Sprintf ("spec.0.trigger.%v.options.0.reset_volume" , idx )).(bool ),
699
+ EnableNotifications : d .Get (fmt .Sprintf ("spec.0.trigger.%v.options.0.enable_notifications" , idx )).(bool ),
700
700
}
701
701
codefreshTrigger .Options = & options
702
702
}
You can’t perform that action at this time.
0 commit comments