From 134c7190d4105f1a7ff8f985d1a32795d2bebe53 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Thu, 31 Aug 2023 08:05:46 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Improve=20the=20wording=20of=20t?= =?UTF-8?q?he=20GCP=20instance=20scanning=20error=20(#1612)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make it a bit more clear where this all needs to run Signed-off-by: Tim Smith --- motor/providers/gcpinstancesnapshot/provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/motor/providers/gcpinstancesnapshot/provider.go b/motor/providers/gcpinstancesnapshot/provider.go index 4ebeee6066..29a0f74b22 100644 --- a/motor/providers/gcpinstancesnapshot/provider.go +++ b/motor/providers/gcpinstancesnapshot/provider.go @@ -55,11 +55,11 @@ func determineScannerInstanceInfo() (*scannerInstance, error) { } scannerInstanceInfo, err := gce.Resolve(localProvider, pf) if err != nil { - return nil, errors.New("gcp snapshot provider needs to run on a gcp instance") + return nil, errors.New("GCP snapshot provider must run from a GCP VM instance") } identity, err := scannerInstanceInfo.Identify() if err != nil { - return nil, errors.New("gcp snapshot provider needs to run on a gcp instance") + return nil, errors.New("GCP snapshot provider must run from a GCP VM instance") } instanceID := identity.PlatformMrn