Skip to content

Commit e20f879

Browse files
committed
Use builtin default for ssh.localPort
Signed-off-by: Anders F Björklund <[email protected]>
1 parent a5f790c commit e20f879

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

examples/default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ ssh:
125125
# 🟢 Builtin default: 0 (automatically assigned to a free port)
126126
# NOTE: when the instance name is "default", the builtin default value is set to
127127
# 60022 for backward compatibility.
128-
localPort: 0
128+
localPort: null
129129
# Load ~/.ssh/*.pub in addition to $LIMA_HOME/_config/user.pub .
130130
# This option is useful when you want to use other SSH-based
131131
# applications such as rsync with the Lima instance.

pkg/limayaml/limayaml_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ func TestEmptyYAML(t *testing.T) {
2626
assert.Equal(t, string(b), emptyYAML)
2727
}
2828

29-
const defaultYAML = `images: []
30-
ssh:
31-
localPort: 0
32-
`
29+
const defaultYAML = "images: []\n"
3330

3431
func TestDefaultYAML(t *testing.T) {
3532
bytes, err := os.ReadFile("default.yaml")

0 commit comments

Comments
 (0)