Skip to content

Support empty route rules #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 15, 2017
Merged

Conversation

codycushing
Copy link
Contributor

Test output

TF_ORACLE_ENV=test TF_ACC=1 go test -v -timeout 120m -run TestResourceCoreRouteTableTestSuite
=== RUN TestResourceCoreRouteTableTestSuite
=== RUN TestAccResourceCoreRouteTable_basic
--- PASS: TestAccResourceCoreRouteTable_basic (46.57s)
--- PASS: TestResourceCoreRouteTableTestSuite (46.57s)
PASS
ok github.com/oracle/terraform-provider-oci 46.585s

routeRules = []baremetal.RouteRule{}
for _, val := range s.D.Get("route_rules").([]interface{}) {

if val == nil {
return nil, fmt.Errorf("Empty route_rules are not permitted, omit empty blocks entirely.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about: "Empty route_rules are not permitted. Instead, the route_rules block may be omitted entirely."

@codycushing codycushing force-pushed the cush-empty-route-rules branch from d42b18b to 03516dd Compare September 15, 2017 16:54
@codycushing codycushing merged commit c4289d5 into cush-core-tests Sep 15, 2017
@codycushing codycushing deleted the cush-empty-route-rules branch September 16, 2017 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants