Skip to content

Commit 52d480c

Browse files
authored
Merge branch 'main' into mafredri/coderd-test-timeouts
2 parents 98b89ba + ad20b23 commit 52d480c

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

cli/state.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package cli
22

33
import (
4+
"fmt"
45
"io"
56
"os"
67
"time"
@@ -50,7 +51,7 @@ func statePull() *cobra.Command {
5051
}
5152

5253
if len(args) < 2 {
53-
cmd.Println(string(state))
54+
_, _ = fmt.Fprintln(cmd.OutOrStdout(), string(state))
5455
return nil
5556
}
5657

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ require (
185185
github.com/godbus/dbus/v5 v5.1.0 // indirect
186186
github.com/gogo/protobuf v1.3.2 // indirect
187187
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
188-
github.com/golang/protobuf v1.5.2 // indirect
188+
github.com/golang/protobuf v1.5.2
189189
github.com/google/btree v1.0.1 // indirect
190190
github.com/google/go-cmp v0.5.8 // indirect
191191
github.com/google/go-querystring v1.1.0 // indirect

provisioner/terraform/resources.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ func applyAutomaticInstanceID(resource *tfjson.StateResource, agents []*proto.Ag
310310
key, isValid := map[string]string{
311311
"google_compute_instance": "instance_id",
312312
"aws_instance": "id",
313+
"aws_spot_instance_request": "spot_instance_id",
313314
"azurerm_linux_virtual_machine": "virtual_machine_id",
314315
"azurerm_windows_virtual_machine": "virtual_machine_id",
315316
}[resource.Type]

provisioner/terraform/resources_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ func TestInstanceIDAssociation(t *testing.T) {
219219
Auth: "aws-instance-identity",
220220
ResourceType: "aws_instance",
221221
InstanceIDKey: "id",
222+
}, {
223+
Auth: "aws-instance-identity",
224+
ResourceType: "aws_spot_instance_request",
225+
InstanceIDKey: "spot_instance_id",
222226
}, {
223227
Auth: "azure-instance-identity",
224228
ResourceType: "azurerm_linux_virtual_machine",

site/src/pages/UserSettingsPage/SSHKeysPage/SSHKeysPageView.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ export const SSHKeysPageView: FC<SSHKeysPageViewProps> = ({
5353
<>
5454
<CodeExample code={sshKey.public_key.trim()} />
5555
<div>
56-
<Button variant="outlined" onClick={onRegenerateClick}>
57-
{Language.regenerateLabel}
58-
</Button>
56+
<Button onClick={onRegenerateClick}>{Language.regenerateLabel}</Button>
5957
</div>
6058
</>
6159
)}

0 commit comments

Comments
 (0)