From e59678a0330885a574dc3114f06bccdca8801fb1 Mon Sep 17 00:00:00 2001 From: Kent Wang Date: Sun, 11 Jun 2017 16:03:28 +0800 Subject: [PATCH] Fix alicloud-ecs typo * Fix typo: internet_max_bandwith_out -> internet_max_bandwidth_out --- builder/alicloud/ecs/run_config.go | 4 ++-- website/source/docs/builders/alicloud-ecs.html.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/alicloud/ecs/run_config.go b/builder/alicloud/ecs/run_config.go index 59b8695e9..b6098ce5c 100644 --- a/builder/alicloud/ecs/run_config.go +++ b/builder/alicloud/ecs/run_config.go @@ -4,11 +4,11 @@ import ( "errors" "fmt" "os" + "strings" "github.com/hashicorp/packer/common/uuid" "github.com/hashicorp/packer/helper/communicator" "github.com/hashicorp/packer/template/interpolate" - "strings" ) type RunConfig struct { @@ -30,7 +30,7 @@ type RunConfig struct { VSwitchName string `mapstructure:"vswitch_id"` InstanceName string `mapstructure:"instance_name"` InternetChargeType string `mapstructure:"internet_charge_type"` - InternetMaxBandwidthOut int `mapstructure:"internet_max_bandwith_out"` + InternetMaxBandwidthOut int `mapstructure:"internet_max_bandwidth_out"` TemporaryKeyPairName string `mapstructure:"temporary_key_pair_name"` // Communicator settings diff --git a/website/source/docs/builders/alicloud-ecs.html.md b/website/source/docs/builders/alicloud-ecs.html.md index ac1450ccc..f4d22c100 100644 --- a/website/source/docs/builders/alicloud-ecs.html.md +++ b/website/source/docs/builders/alicloud-ecs.html.md @@ -173,7 +173,7 @@ builder. If this parameter is not specified, the default value is `PayByBandwidth`. -- `internet_max_bandwith_out` (string) - Maximum outgoing bandwidth to the public +- `internet_max_bandwidth_out` (string) - Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Value range: