Skip to content

Commit

Permalink
fix docker conf generate
Browse files Browse the repository at this point in the history
  • Loading branch information
arstercz committed Mar 6, 2023
1 parent 9900627 commit 44fa20d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/telegraf-discover
Original file line number Diff line number Diff line change
Expand Up @@ -1820,7 +1820,8 @@ sub _replace_docker {
my $sockf = shift;

if (-e $sockf) {
$temp =~ s/docker_sock_path/$sockf/g;
my $socks = "unix://$sockf";
$temp =~ s/docker_sock_path/$socks/g;
}
else {
$temp = "";
Expand Down

0 comments on commit 44fa20d

Please sign in to comment.