-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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/azurerm: Add disk_size_gb param to VM storage_os_disk #9200
Conversation
titanous
commented
Oct 4, 2016
Hi @titanous Thanks for the work here -- 2 small things:
Paul |
e95881c
to
669df98
Compare
Done.
The storage disk |
@@ -204,11 +206,11 @@ func testCheckAzureRMAvailabilitySetDestroy(s *terraform.State) error { | |||
var testAccAzureRMVAvailabilitySet_basic = ` | |||
resource "azurerm_resource_group" "test" { | |||
name = "acctestRG-%d" | |||
location = "West US" | |||
location = "Canada Central" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to change the default test location?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, see the commit message here: 14169d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, it looks like this commit is supposed to be on a separate PR. Fixing...
669df98
to
0ade217
Compare
"disk_size_gb": { | ||
Type: schema.TypeInt, | ||
Optional: true, | ||
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is exactly the same function as for storage_os_disk:disk_size_gb . Consider replacing both with a single common function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
0ade217
to
6c34169
Compare
TF_ACC=1 go test ./builtin/providers/azurerm -v -run=TestAccAzureRMVirtualMachine_basicLinuxMachine -timeout 120m === RUN TestAccAzureRMVirtualMachine_basicLinuxMachine --- PASS: TestAccAzureRMVirtualMachine_basicLinuxMachine (540.83s) PASS ok github.com/hashicorp/terraform/builtin/providers/azurerm 540.841s TF_ACC=1 go test ./builtin/providers/azurerm -v -run=TestAccAzureRMVirtualMachine_withDataDisk -timeout 120m === RUN TestAccAzureRMVirtualMachine_withDataDisk --- PASS: TestAccAzureRMVirtualMachine_withDataDisk (431.19s) PASS ok github.com/hashicorp/terraform/builtin/providers/azurerm 431.203s
6c34169
to
f385408
Compare
I can confirm @titanous findings about |
@carinadigital not sure what you mean here ? |
Hi @titanous Thanks for the work here - this is working as you suggested :)
|
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. |