Skip to content

Commit a7f3374

Browse files
authored
alexjustesen#443 passing verifySSL to the client (alexjustesen#486)
1 parent 2f619c3 commit a7f3374

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/Jobs/SendDataToInfluxDbV2.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function handle()
5353
'token' => $influxdb['token'],
5454
'bucket' => $influxdb['bucket'],
5555
'org' => $influxdb['org'],
56+
'verifySSL' => $influxdb['verifySSL'],
5657
'precision' => \InfluxDB2\Model\WritePrecision::S,
5758
]);
5859

app/Models/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function formatForInfluxDB2()
9090
'server_host' => $this->server_host,
9191
'server_name' => $this->server_name,
9292
'scheduled' => $this->scheduled,
93-
'packet_loss' => (float) $data['packetLoss'] ?? null, // optional, because apparently the cli doesn't always have this metric
93+
'packet_loss' => array_key_exists('packetLoss', $data) ? (float) $data['packetLoss'] : null, // optional, because apparently the cli doesn't always have this metric
9494
];
9595
}
9696

0 commit comments

Comments
 (0)