From 471b585db4a763eabaa1b6666670209141d1a1f1 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 4 Feb 2021 15:35:54 +0100 Subject: [PATCH] enhance gcp cloudsql mysql discovery --- cloud/google/gcp/cloudsql/mysql/mode/discovery.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloud/google/gcp/cloudsql/mysql/mode/discovery.pm b/cloud/google/gcp/cloudsql/mysql/mode/discovery.pm index 83d85384f..47a19a79e 100644 --- a/cloud/google/gcp/cloudsql/mysql/mode/discovery.pm +++ b/cloud/google/gcp/cloudsql/mysql/mode/discovery.pm @@ -56,6 +56,8 @@ sub run { next if ($instance->{databaseVersion} !~ /mysql/i); my $item = {}; $item->{name} = $instance->{name}; + $item->{database_id} = $instance->{project} . ':' . $instance->{name}; + $item->{project} = $instance->{project}; $item->{version} = $instance->{databaseVersion}; $item->{state} = $instance->{state}; $item->{region} = $instance->{region};