summaryrefslogtreecommitdiff
path: root/pkg/specgenutil
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2021-07-29 08:34:49 -0700
committerJhon Honce <jhonce@redhat.com>2021-08-27 11:11:01 -0700
commita5adc3d80f7387c75c83f1e0c7ad3333fdc48806 (patch)
treeab45e953b5e89452a5b32a4c8c78c37c05f64923 /pkg/specgenutil
parent266a3892f25d8cee508f421e718ba6f135ff7123 (diff)
downloadpodman-a5adc3d80f7387c75c83f1e0c7ad3333fdc48806.tar.gz
podman-a5adc3d80f7387c75c83f1e0c7ad3333fdc48806.tar.bz2
podman-a5adc3d80f7387c75c83f1e0c7ad3333fdc48806.zip
Add support for mount options to API
When creating containers the specialized mount options where not populated via the API. Fixes: #10831 Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/specgenutil')
-rw-r--r--pkg/specgenutil/volumes.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/specgenutil/volumes.go b/pkg/specgenutil/volumes.go
index e9f70fc9d..0ed08198f 100644
--- a/pkg/specgenutil/volumes.go
+++ b/pkg/specgenutil/volumes.go
@@ -620,9 +620,9 @@ func getTmpfsMounts(tmpfsFlag []string) (map[string]spec.Mount, error) {
mount := spec.Mount{
Destination: filepath.Clean(destPath),
- Type: string(define.TypeTmpfs),
+ Type: define.TypeTmpfs,
Options: options,
- Source: string(define.TypeTmpfs),
+ Source: define.TypeTmpfs,
}
m[destPath] = mount
}