diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-08-19 13:57:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-19 13:57:15 +0200 |
commit | bd0b05f13860b62de389ec67eadd0df6b44d4f4f (patch) | |
tree | f2ceb2257d86ff0348b3c60a100b3e3e3f9033e5 /libpod/runtime_volume_linux.go | |
parent | befaa95d93481eef0d75d3babce7c6c643ecf85f (diff) | |
parent | 582a24dfed12da93a3a5e36ad269787b4ece93fc (diff) | |
download | podman-bd0b05f13860b62de389ec67eadd0df6b44d4f4f.tar.gz podman-bd0b05f13860b62de389ec67eadd0df6b44d4f4f.tar.bz2 podman-bd0b05f13860b62de389ec67eadd0df6b44d4f4f.zip |
Merge pull request #3709 from mheon/volume_inspect
Change backend code for 'volume inspect'
Diffstat (limited to 'libpod/runtime_volume_linux.go')
-rw-r--r-- | libpod/runtime_volume_linux.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libpod/runtime_volume_linux.go b/libpod/runtime_volume_linux.go index ac6fd02c3..84703787d 100644 --- a/libpod/runtime_volume_linux.go +++ b/libpod/runtime_volume_linux.go @@ -7,6 +7,7 @@ import ( "os" "path/filepath" "strings" + "time" "github.com/containers/libpod/libpod/define" "github.com/containers/libpod/libpod/events" @@ -42,14 +43,10 @@ func (r *Runtime) newVolume(ctx context.Context, options ...VolumeCreateOption) if volume.config.Name == "" { volume.config.Name = stringid.GenerateNonCryptoID() } - // TODO: support for other volume drivers if volume.config.Driver == "" { volume.config.Driver = "local" } - // TODO: determine when the scope is global and set it to that - if volume.config.Scope == "" { - volume.config.Scope = "local" - } + volume.config.CreatedTime = time.Now() // Create the mountpoint of this volume volPathRoot := filepath.Join(r.config.VolumePath, volume.config.Name) |