Skip to content

Commit 567c3a7

Browse files
committed
wipp
1 parent c7f2b60 commit 567c3a7

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

examples/main.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,16 @@ resource "iterative_machine" "machine-azure" {
1919
driver = "azure"
2020
region = "us-west"
2121
instance_type = "m"
22+
23+
provisioner "remote-exec" {
24+
inline = [
25+
"ls",
26+
]
27+
28+
connection {
29+
user = "ubuntu"
30+
private_key = "${self.key_private}"
31+
host = "${self.instance_ip}"
32+
}
33+
}
2234
}

iterative/azure/provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ func ResourceMachineDelete(ctx context.Context, d *schema.ResourceData, m interf
285285

286286
subscriptionID := os.Getenv("AZURE_SUBSCRIPTION_ID")
287287
groupsClient, err := getGroupsClient(subscriptionID)
288-
_, err = groupsClient.Delete(context.Background(), d.Id())
289-
//err = future.WaitForCompletionRef(ctx, groupsClient.Client)
288+
future, err := groupsClient.Delete(context.Background(), d.Id())
289+
err = future.WaitForCompletionRef(ctx, groupsClient.Client)
290290
if err != nil {
291291
diags = append(diags, diag.Diagnostic{
292292
Severity: diag.Error,

0 commit comments

Comments
 (0)