diff options
author | baude <bbaude@redhat.com> | 2018-01-10 07:51:02 -0600 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-01-11 21:27:26 +0000 |
commit | 9adcb85929ac9536e967907c6a6057046a98ab16 (patch) | |
tree | 88aeff6abd88055048f9d157cde67a01cbd2e2a3 /libpod | |
parent | dd0d35deb098b63f8c5be7ef9d8d63c16760221b (diff) | |
download | podman-9adcb85929ac9536e967907c6a6057046a98ab16.tar.gz podman-9adcb85929ac9536e967907c6a6057046a98ab16.tar.bz2 podman-9adcb85929ac9536e967907c6a6057046a98ab16.zip |
podman run container id to file
podman run --cidfile /tmp/foo writes the container's id
to a file.
Signed-off-by: baude <bbaude@redhat.com>
Closes: #205
Approved by: rhatdan
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/util.go b/libpod/util.go index de5c3ff31..1a033a940 100644 --- a/libpod/util.go +++ b/libpod/util.go @@ -24,7 +24,7 @@ const ( func WriteFile(content string, path string) error { baseDir := filepath.Dir(path) if baseDir != "" { - if _, err := os.Stat(path); err != nil { + if _, err := os.Stat(baseDir); err != nil { return err } } |