Update builder/ucloud/uhost/step_config_subnet.go

Co-Authored-By: Megan Marsh <megan@hashicorp.com>
This commit is contained in:
mingsheng.su 2019-06-28 12:02:24 +08:00 committed by GitHub
parent 7fdd72d418
commit 71fcc9fce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func (s *stepConfigSubnet) Run(ctx context.Context, state multistep.StateBag) mu
subnetSet, err := client.describeSubnetById(s.SubnetId) subnetSet, err := client.describeSubnetById(s.SubnetId)
if err != nil { if err != nil {
if isNotFoundError(err) { if isNotFoundError(err) {
err = fmt.Errorf("the specified subnet %q not exist", s.SubnetId) err = fmt.Errorf("the specified subnet %q does not exist", s.SubnetId)
return halt(state, err, "") return halt(state, err, "")
} }
return halt(state, err, fmt.Sprintf("Error on querying specified subnet %q", s.SubnetId)) return halt(state, err, fmt.Sprintf("Error on querying specified subnet %q", s.SubnetId))