Skip to content
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

Private DNS Permitted Network related changes #1290

Merged
merged 2 commits into from
Apr 13, 2020
Merged

Private DNS Permitted Network related changes #1290

merged 2 commits into from
Apr 13, 2020

Conversation

sakthishanmugam2ibm
Copy link

deletePermittedNetworkOptions := sess.NewDeletePermittedNetworkOptions(id_set[0], id_set[1], id_set[2])
_, _, err = sess.DeletePermittedNetwork(deletePermittedNetworkOptions)

if err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add the check for status code 404 also same as zone resource

Choose a reason for hiding this comment

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

addressed.


pdnsNetworkType: {
Type: schema.TypeString,
Required: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of Required...Make it optional and Default: "vpc" and t validateFunc can use existing method
ValidateFunc: validateAllowedStringValue([]string{"vpc"
}),

Choose a reason for hiding this comment

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

addressed.

func testAccCheckIBMPrivateDNSPermittedNetworkBasic(name string) string {
return fmt.Sprintf(`
data "ibm_resource_group" "rg" {
name = "VNF VPC Development"
Copy link
Collaborator

Choose a reason for hiding this comment

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

change to "default"

Choose a reason for hiding this comment

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

addressed.


Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(10 * time.Minute),
Update: schema.DefaultTimeout(10 * time.Minute),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update can be removed ...

Choose a reason for hiding this comment

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

addressed.

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.

3 participants