Update builder/ucloud/uhost/step_config_security_group.go

Co-Authored-By: Megan Marsh <megan@hashicorp.com>
This commit is contained in:
mingsheng.su 2019-06-28 12:01:47 +08:00 committed by GitHub
parent e9e5493fd1
commit a44df3d899
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 *stepConfigSecurityGroup) Run(ctx context.Context, state multistep.State
securityGroupSet, err := client.describeFirewallById(s.SecurityGroupId)
if err != nil {
if isNotFoundError(err) {
err = fmt.Errorf("the specified security group %q not exist", s.SecurityGroupId)
err = fmt.Errorf("the specified security group %q does not exist", s.SecurityGroupId)
return halt(state, err, "")
}
return halt(state, err, fmt.Sprintf("Error on querying specified security group %q", s.SecurityGroupId))