From 3d8bda31a467c5c2ed60556adb0c163e1e609e0d Mon Sep 17 00:00:00 2001 From: Rens Sikma Date: Thu, 20 Feb 2020 12:54:35 +0100 Subject: [PATCH] modify docstring --- builder/googlecompute/config.go | 3 ++- .../builder/googlecompute/_Config-not-required.html.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/builder/googlecompute/config.go b/builder/googlecompute/config.go index b45357f26..cd8bddf2b 100644 --- a/builder/googlecompute/config.go +++ b/builder/googlecompute/config.go @@ -149,7 +149,8 @@ type Config struct { // family always returns its latest image that is not deprecated. Example: // "debian-8". SourceImageFamily string `mapstructure:"source_image_family" required:"true"` - // The project ID's of the project containing the source image. + // A list of project IDs to search for the source image. Packer will search the first + // project ID in the list first, and fall back to the next in the list, until it finds the source image. SourceImageProjectId []string `mapstructure:"source_image_project_id" required:"false"` // The path to a startup script to run on the VM from which the image will // be made. diff --git a/website/source/partials/builder/googlecompute/_Config-not-required.html.md b/website/source/partials/builder/googlecompute/_Config-not-required.html.md index 0fde1419d..41b95f956 100644 --- a/website/source/partials/builder/googlecompute/_Config-not-required.html.md +++ b/website/source/partials/builder/googlecompute/_Config-not-required.html.md @@ -108,7 +108,8 @@ project's default service account unless disable_default_service_account is true. -- `source_image_project_id` ([]string) - The project ID's of the project containing the source image. +- `source_image_project_id` ([]string) - A list of project IDs to search for the source image. Packer will search the first + project ID in the list first, and fall back to the next in the list, until it finds the source image. - `startup_script_file` (string) - The path to a startup script to run on the VM from which the image will be made.