From 1e66a1b35521c60941ce4a82b0b0717bcc2f4902 Mon Sep 17 00:00:00 2001 From: Vijay Rajah Date: Thu, 9 Apr 2020 00:00:13 +0530 Subject: [PATCH] Fix linting & code generation --- builder/azure/arm/config.hcl2spec.go | 2 +- builder/azure/arm/tempname.go | 1 - .../pages/partials/builder/azure/arm/Config-not-required.mdx | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/builder/azure/arm/config.hcl2spec.go b/builder/azure/arm/config.hcl2spec.go index c34d43373..1fed61165 100644 --- a/builder/azure/arm/config.hcl2spec.go +++ b/builder/azure/arm/config.hcl2spec.go @@ -1,4 +1,4 @@ -// Code generated by "mapstructure-to-hcl2 -type Config,SharedImageGallery,SharedImageGalleryDestination,PlanInformation -output config.hcl2spec.go"; DO NOT EDIT. +// Code generated by "mapstructure-to-hcl2 -type Config,SharedImageGallery,SharedImageGalleryDestination,PlanInformation"; DO NOT EDIT. package arm import ( diff --git a/builder/azure/arm/tempname.go b/builder/azure/arm/tempname.go index 3196b5f86..f5ee844ee 100644 --- a/builder/azure/arm/tempname.go +++ b/builder/azure/arm/tempname.go @@ -26,7 +26,6 @@ type TempName struct { func NewTempName(p string) *TempName { tempName := &TempName{} - if p == "" { suffix := random.AlphaNumLower(10) tempName.ComputeName = fmt.Sprintf("pkrvm%s", suffix) diff --git a/website/pages/partials/builder/azure/arm/Config-not-required.mdx b/website/pages/partials/builder/azure/arm/Config-not-required.mdx index e57e51119..051717d3c 100644 --- a/website/pages/partials/builder/azure/arm/Config-not-required.mdx +++ b/website/pages/partials/builder/azure/arm/Config-not-required.mdx @@ -234,6 +234,8 @@ Providing `allowed_inbound_ip_addresses` in combination with `virtual_network_name` is not allowed. +- `custom_resource_build_prefix` (string) - specify custom azure resource names + - `async_resourcegroup_delete` (bool) - If you want packer to delete the temporary resource group asynchronously set this value. It's a boolean value and defaults to false. Important Setting this true means that