Persist quarks properties in addons
@@ -83,7 +83,7 @@ type Release struct {
type AddOnJob struct {
Name string `json:"name"`
Release string `json:"release"`
- Properties map[string]interface{} `json:"properties,omitempty"`
+ Properties JobProperties `json:"properties,omitempty"`
}
// AddOnStemcell from BOSH deployment manifest
@@ -472,14 +472,15 @@ func (m *Manifest) ApplyAddons() error {
}
for _, addonJob := range addon.Jobs {
- ig.Jobs = append(ig.Jobs, Job{
+ addedJob := Job{
Name: addonJob.Name,
Release: addonJob.Release,
- Properties: JobProperties{
- Quarks: Quarks{IsAddon: true},
Properties: addonJob.Properties,
- },
- })
+ }
+
+ addedJob.Properties.Quarks.IsAddon = true
+
+ ig.Jobs = append(ig.Jobs, addedJob)
}
}
}
