Update builder/ucloud/uhost/step_config_vpc.go
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
This commit is contained in:
parent
71fcc9fce3
commit
4dfb338915
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue