Skip to content

Commit fdad6c3

Browse files
committed
syncing vendor files
1 parent e529427 commit fdad6c3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

f5teem/f5teem.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ func (b *TeemObject) Report(telemetry map[string]interface{}, telemetryType, tel
8686
telemetryData, _ := json.Marshal(telemetry)
8787
telemetryDatalist := []string{string(telemetryData[:])}
8888
log.Printf("[DEBUG] telemetryDatalist:%+v", telemetryDatalist)
89+
90+
telemetrynew := []map[string]interface{}{}
91+
telemetrynew = append(telemetrynew, telemetry)
92+
8993
bodyData := map[string]interface{}{
9094
"documentType": b.TelemetryType,
9195
"documentVersion": b.TelemetryTypeVersion,
@@ -95,7 +99,7 @@ func (b *TeemObject) Report(telemetry map[string]interface{}, telemetryType, tel
9599
"observationStartTime": time.Now().UTC().Format(time.RFC3339Nano),
96100
"observationEndTime": time.Now().UTC().Format(time.RFC3339Nano),
97101
"epochTime": time.Now().Unix(),
98-
"telemetryRecords": telemetryDatalist,
102+
"telemetryRecords": telemetrynew,
99103
}
100104
bodyInfo, _ := json.Marshal(bodyData)
101105
body := bytes.NewReader([]byte(bodyInfo))

ltm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2810,7 +2810,7 @@ func (b *BigIP) DeleteFastl4(name string) error {
28102810
// ModifyFastl4 updates the given Fastl4 profile with any changed values.
28112811
func (b *BigIP) ModifyFastl4(name string, fastl4 *Fastl4) error {
28122812
fastl4.Name = name
2813-
return b.put(fastl4, uriLtm, uriProfile, uriFastl4, name)
2813+
return b.patch(fastl4, uriLtm, uriProfile, uriFastl4, name)
28142814
}
28152815

28162816
func (b *BigIP) GetFastl4(name string) (*Fastl4, error) {

0 commit comments

Comments
 (0)