Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit afb263f

Browse files
authored
Merge pull request #124 from mnottale/templateloader-volume-fix
templateloader: Fix short syntax volume loading.
2 parents 14eb2a1 + 747064b commit afb263f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templateloader/volume.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"unicode"
66
"unicode/utf8"
77

8-
"github.com/docker/cli/cli/compose/types"
98
"github.com/docker/docker/api/types/mount"
9+
types "github.com/docker/lunchbox/templatetypes"
1010
"github.com/pkg/errors"
1111
)
1212

@@ -70,9 +70,9 @@ func populateFieldFromBuffer(char rune, buffer []rune, volume *types.ServiceVolu
7070
for _, option := range strings.Split(strBuffer, ",") {
7171
switch option {
7272
case "ro":
73-
volume.ReadOnly = true
73+
volume.ReadOnly = types.BoolOrTemplate{ Value: true}
7474
case "rw":
75-
volume.ReadOnly = false
75+
volume.ReadOnly = types.BoolOrTemplate{ Value: false}
7676
case "nocopy":
7777
volume.Volume = &types.ServiceVolumeVolume{NoCopy: true}
7878
default:

0 commit comments

Comments
 (0)