From 8c326dbab74d0733fcb9ec498e739dec284c077a Mon Sep 17 00:00:00 2001 From: Amrita Dutta Date: Wed, 7 Nov 2018 18:08:15 +0000 Subject: [PATCH] Formatting changes --- builder/azure/arm/config_test.go | 2 +- builder/azure/arm/resource_resolver.go | 2 +- builder/azure/arm/step_snapshot_data_disks.go | 4 ++-- builder/azure/arm/step_snapshot_os_disk.go | 4 ++-- builder/azure/arm/step_snapshot_os_disk_test.go | 2 +- builder/azure/arm/template_factory_test.go | 8 ++++---- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/builder/azure/arm/config_test.go b/builder/azure/arm/config_test.go index d25329dc7..60ef609d3 100644 --- a/builder/azure/arm/config_test.go +++ b/builder/azure/arm/config_test.go @@ -799,7 +799,7 @@ func TestConfigShouldRejectCustomAndPlatformManagedImageBuild(t *testing.T) { func TestConfigShouldRejectCustomAndImageUrlForManagedImageBuild(t *testing.T) { config := map[string]interface{}{ - "image_url": "ignore", + "image_url": "ignore", "custom_managed_image_resource_group_name": "ignore", "custom_managed_image_name": "ignore", "location": "ignore", diff --git a/builder/azure/arm/resource_resolver.go b/builder/azure/arm/resource_resolver.go index 8b89d78af..80c55bbb1 100644 --- a/builder/azure/arm/resource_resolver.go +++ b/builder/azure/arm/resource_resolver.go @@ -24,7 +24,7 @@ type resourceResolver struct { func newResourceResolver(client *AzureClient) *resourceResolver { return &resourceResolver{ - client: client, + client: client, findVirtualNetworkResourceGroup: findVirtualNetworkResourceGroup, findVirtualNetworkSubnet: findVirtualNetworkSubnet, } diff --git a/builder/azure/arm/step_snapshot_data_disks.go b/builder/azure/arm/step_snapshot_data_disks.go index 6535e656b..3e3533fc8 100644 --- a/builder/azure/arm/step_snapshot_data_disks.go +++ b/builder/azure/arm/step_snapshot_data_disks.go @@ -13,7 +13,7 @@ import ( type StepSnapshotDataDisks struct { client *AzureClient - create func(ctx context.Context, resourceGroupName string, srcUriVhd string, location string, tags map[string]*string, dstSnapshotName string) error + create func(ctx context.Context, resourceGroupName string, srcUriVhd string, location string, tags map[string]*string, dstSnapshotName string) error say func(message string) error func(e error) } @@ -35,7 +35,7 @@ func (s *StepSnapshotDataDisks) createDataDiskSnapshot(ctx context.Context, reso DiskProperties: &compute.DiskProperties{ CreationData: &compute.CreationData{ CreateOption: compute.Import, - SourceURI: to.StringPtr(srcUriVhd), + SourceURI: to.StringPtr(srcUriVhd), }, }, Location: to.StringPtr(location), diff --git a/builder/azure/arm/step_snapshot_os_disk.go b/builder/azure/arm/step_snapshot_os_disk.go index c954fdf71..ce73f3f96 100644 --- a/builder/azure/arm/step_snapshot_os_disk.go +++ b/builder/azure/arm/step_snapshot_os_disk.go @@ -12,7 +12,7 @@ import ( type StepSnapshotOSDisk struct { client *AzureClient - create func(ctx context.Context, resourceGroupName string, srcUriVhd string, location string, tags map[string]*string, dstSnapshotName string) error + create func(ctx context.Context, resourceGroupName string, srcUriVhd string, location string, tags map[string]*string, dstSnapshotName string) error say func(message string) error func(e error) } @@ -34,7 +34,7 @@ func (s *StepSnapshotOSDisk) createSnapshot(ctx context.Context, resourceGroupNa DiskProperties: &compute.DiskProperties{ CreationData: &compute.CreationData{ CreateOption: compute.Import, - SourceURI: to.StringPtr(srcUriVhd), + SourceURI: to.StringPtr(srcUriVhd), }, }, Location: to.StringPtr(location), diff --git a/builder/azure/arm/step_snapshot_os_disk_test.go b/builder/azure/arm/step_snapshot_os_disk_test.go index 08f5038ac..786e6a36e 100644 --- a/builder/azure/arm/step_snapshot_os_disk_test.go +++ b/builder/azure/arm/step_snapshot_os_disk_test.go @@ -67,4 +67,4 @@ func createTestStateBagStepSnapshotOSDisk() multistep.StateBag { stateBag.Put(constants.ArmManagedImageOSDiskSnapshotName, "Unit Test: ManagedImageOSDiskSnapshotName") return stateBag -} \ No newline at end of file +} diff --git a/builder/azure/arm/template_factory_test.go b/builder/azure/arm/template_factory_test.go index ac00d33fd..fcf431336 100644 --- a/builder/azure/arm/template_factory_test.go +++ b/builder/azure/arm/template_factory_test.go @@ -261,10 +261,10 @@ growpart: // Ensure the VM template is correct when building from a custom managed image. func TestVirtualMachineDeployment08(t *testing.T) { config := map[string]interface{}{ - "location": "ignore", - "subscription_id": "ignore", - "os_type": constants.Target_Linux, - "communicator": "none", + "location": "ignore", + "subscription_id": "ignore", + "os_type": constants.Target_Linux, + "communicator": "none", "custom_managed_image_resource_group_name": "CustomManagedImageResourceGroupName", "custom_managed_image_name": "CustomManagedImageName", "managed_image_name": "ManagedImageName",