Skip to content

Commit

Permalink
region and test
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGOrtega committed Jul 12, 2021
1 parent b17d8a0 commit c4bd9f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion iterative/gcp/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func ResourceMachineDelete(ctx context.Context, d *schema.ResourceData, m interf
return err
}

instanceZone := d.Get("region").(string)
instanceZone := getRegion(d.Get("region").(string))
instanceName := d.Id()

instanceDeleteOperation, err := service.Instances.Delete(project, instanceZone, instanceName).Do()
Expand Down
7 changes: 3 additions & 4 deletions iterative/testdata/script_template_cloud_gcp.golden
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,14 @@ sudo chmod +x /usr/bin/cml.sh

sudo bash -c 'cat << EOF > /etc/systemd/system/cml.service
[Unit]
Description=cml service
After=default.target
[Service]
Type=oneshot
RemainAfterExit=yes
Type=simple
ExecStart=/usr/bin/cml.sh
[Install]
WantedBy=multi-user.target
WantedBy=default.target
EOF'


Expand Down

0 comments on commit c4bd9f3

Please sign in to comment.