Skip to content

Commit 1002d63

Browse files
committed
more fixes
1 parent 1fd0396 commit 1002d63

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tailout/connect.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func (app *App) Connect(ctx context.Context, args []string) error {
4545
return fmt.Errorf("node %s not found", nodeConnect)
4646
}
4747
deviceToConnectTo = tailoutDevices[i]
48+
nodeConnect = deviceToConnectTo.NodeID
4849
case !nonInteractive:
4950
if len(tailoutDevices) == 0 {
5051
return errors.New("no tailout node found in your tailnet")

tailout/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ sudo echo "sudo shutdown" | at now + ` + strconv.Itoa(10) + ` minutes`
276276

277277
identity, err := stsSvc.GetCallerIdentity(ctx, &sts.GetCallerIdentityInput{})
278278
if err != nil {
279-
return instance, fmt.Errorf("failed to get account ID: %w", err)
279+
return nil, fmt.Errorf("failed to get account ID: %w", err)
280280
}
281281

282282
fmt.Printf(`Creating tailout node in AWS with the following parameters:

0 commit comments

Comments
 (0)