Update builder/ucloud/uhost/step_config_vpc.go

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

View File

@ -22,7 +22,7 @@ func (s *stepConfigVPC) Run(ctx context.Context, state multistep.StateBag) multi
vpcSet, err := client.describeVPCById(s.VPCId) vpcSet, err := client.describeVPCById(s.VPCId)
if err != nil { if err != nil {
if isNotFoundError(err) { if isNotFoundError(err) {
err = fmt.Errorf("the specified vpc %q not exist", s.VPCId) err = fmt.Errorf("the specified vpc %q does not exist", s.VPCId)
return halt(state, err, "") return halt(state, err, "")
} }
return halt(state, err, fmt.Sprintf("Error on querying specified vpc %q", s.VPCId)) return halt(state, err, fmt.Sprintf("Error on querying specified vpc %q", s.VPCId))