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

provider/aws: aws autoscale schedule 0 values #4693

Merged
merged 3 commits into from
Jan 28, 2016

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Jan 15, 2016

As per #4690

Added a test to prove that 0 values cannot be specified for the Autoscale Group Schedule resource for min_size, max_size or desirect_capacity even though they are valid values

This shouldn't really be merged until a fix is added for this

@catsby
Copy link
Contributor

catsby commented Jan 21, 2016

I opened stack72#1 to make these fields optional. It's a simple/naive fix... I don't see what the problem would be if the API allows this. Thoughts? What am I missing?

provider/aws: Default Autoscaling Schedule min/max/desired to zero
@catsby catsby added the bug label Jan 22, 2016
@catsby
Copy link
Contributor

catsby commented Jan 22, 2016

cc @jen20 or @phinze for sanity check, since I contributed here

@stack72
Copy link
Contributor Author

stack72 commented Jan 23, 2016

@catsby I think this is fine with me. I just ran the tests and all passed so this can be merged IMO

@stack72
Copy link
Contributor Author

stack72 commented Jan 28, 2016

@catsby I have tested this and it all looks good now since your changes :)

IMO I think putting 0 as the default is ok - we would need to put it in the release notes that it's not a backwards compatible change

make testacc TEST=./builtin/providers/aws TESTARGS='-run=AWSAutoscalingSchedule_zero' 2>~/tf.log
==> Checking that code complies with gofmt requirements...
go generate ./...
TF_ACC=1 go test ./builtin/providers/aws -v -run=AWSAutoscalingSchedule_zero -timeout 120m
=== RUN   TestAccAWSAutoscalingSchedule_zeroValues
--- PASS: TestAccAWSAutoscalingSchedule_zeroValues (168.52s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    168.536s

I think we can merge this :)

@jen20
Copy link
Contributor

jen20 commented Jan 28, 2016

LGTM with test coverage.

stack72 added a commit that referenced this pull request Jan 28, 2016
provider/aws: aws autoscale schedule 0 values
@stack72 stack72 merged commit 05d19b0 into hashicorp:master Jan 28, 2016
@stack72 stack72 deleted the f-aws-asg-schedule-0values branch January 28, 2016 15:43
@ghost
Copy link

ghost commented Apr 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants