Skip to content

Commit

Permalink
update for test
Browse files Browse the repository at this point in the history
  • Loading branch information
runzexia committed Jan 23, 2018
1 parent 9672630 commit ff66cb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qingcloud/resource_qingcloud_vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func resourceQingcloudVpcRead(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return err
}
if len(output.RouterSet) == 0 {
if isRouterDeleted(output.RouterSet) {
d.SetId("")
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion qingcloud/resource_qingcloud_vpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func testAccCheckVpcDestroyWithProvider(s *terraform.State, provider *schema.Pro
input.Routers = []*string{qc.String(rs.Primary.ID)}
output, err := client.router.DescribeRouters(input)
if err == nil {
if isRouterDeleted(output.RouterSet) {
if !isRouterDeleted(output.RouterSet) {
return fmt.Errorf("Found Router: %s", rs.Primary.ID)
}
}
Expand Down

0 comments on commit ff66cb7

Please sign in to comment.