Skip to content

Commit 8c6bb95

Browse files
committed
Update remaining methods to use state.Pinned instead of config.Pinned
Signed-off-by: tobwen <[email protected]>
1 parent bc5b267 commit 8c6bb95

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libpod/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ func WithVolumePinned() VolumeCreateOption {
17611761
return define.ErrVolumeFinalized
17621762
}
17631763

1764-
volume.config.Pinned = true
1764+
volume.state.Pinned = true
17651765

17661766
return nil
17671767
}

libpod/volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ func (v *Volume) SetPinned(pinned bool) error {
313313
return err
314314
}
315315

316-
v.config.Pinned = pinned
316+
v.state.Pinned = pinned
317317

318318
return v.save()
319319
}

libpod/volume_inspect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (v *Volume) Inspect() (*define.InspectVolumeData, error) {
7575
data.Timeout = v.runtime.config.Engine.VolumePluginTimeout
7676
}
7777

78-
data.Pinned = v.config.Pinned
78+
data.Pinned = v.state.Pinned
7979

8080
return data, nil
8181
}

0 commit comments

Comments
 (0)