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