Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

WIP : Maintenance window resource #63

Closed

Conversation

nlamirault
Copy link
Contributor

@nlamirault nlamirault commented Apr 9, 2020

FIX : #62

Signed-off-by: Nicolas Lamirault [email protected]

Signed-off-by: Nicolas Lamirault <[email protected]>
@nlamirault nlamirault changed the title WIP : Mmaintenance window resource WIP : Maintenance window resource Apr 9, 2020
Signed-off-by: Nicolas Lamirault <[email protected]>
@dchancogne
Copy link

Any chance this can be merged soon-ish? Thank you.

@dchancogne
Copy link

Please, pretty please!

Signed-off-by: Nicolas Lamirault <[email protected]>
@dchancogne
Copy link

Looks like there has been activity. What remains to be done for this to be merged? Anything I can do that would be useful?

Copy link
Owner

@russellcardullo russellcardullo left a comment

Choose a reason for hiding this comment

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

I get some errors when trying to use this. Would you mind fixing those as well as updating the README with some documentation on the new resource?

return fmt.Errorf("Error retrieving id for resource: %s", err)
}

// log.Printf("========================== Maintenances")
Copy link
Owner

Choose a reason for hiding this comment

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

nit: would you mind remving the commented out code when you're ready for this to be merged?

"strconv"
"strings"

"github.com/hashicorp/terraform/helper/schema"
Copy link
Owner

Choose a reason for hiding this comment

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

Can you change this to use github.com/hashicorp/terraform-plugin-sdk/helper/schema?

"log"
"strconv"

"github.com/hashicorp/terraform/helper/schema"
Copy link
Owner

Choose a reason for hiding this comment

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

Can you change this to use github.com/hashicorp/terraform-plugin-sdk/helper/schema?

windowParams.From = v.(int64)
}
if v, ok := d.GetOk("to"); ok {
windowParams.To = v.(int64)
Copy link
Owner

Choose a reason for hiding this comment

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

I get a panic on this line: panic: interface conversion: interface {} is int, not int64. I think this and the from param should probably be changed to int as the terraform SDK only has TypeInt.

@nlamirault
Copy link
Contributor Author

My bad @russellcardullo @dchancogne I didn't have time to work on it at all. Prefer #98

@nlamirault nlamirault closed this Apr 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Support maintenance windows
3 participants