summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-09-17 09:33:11 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-09-17 16:28:28 +0000
commit800eb8633850ddbcd01aa827fe4e505e6075e253 (patch)
tree92502a354452da67983a4114f31fc60acf8e965b /libpod/options.go
parent8b66eae7d8dcb298d05bfb0234104bfda6be3929 (diff)
downloadpodman-800eb8633850ddbcd01aa827fe4e505e6075e253.tar.gz
podman-800eb8633850ddbcd01aa827fe4e505e6075e253.tar.bz2
podman-800eb8633850ddbcd01aa827fe4e505e6075e253.zip
Hooks supports two directories, process default and override
ALso cleanup files section or podman man page Add description of policy.json Sort alphabetically. Add more info on oci hooks Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1487 Approved by: umohnani8
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/options.go b/libpod/options.go
index e6751d68d..1a29c0705 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -181,7 +181,7 @@ func WithStaticDir(dir string) RuntimeOption {
// WithHooksDir sets the directory to look for OCI runtime hooks config.
// Note we are not saving this in database, since this is really just for used
// for testing.
-func WithHooksDir(hooksDir string, dirNotExistFatal bool) RuntimeOption {
+func WithHooksDir(hooksDir string) RuntimeOption {
return func(rt *Runtime) error {
if rt.valid {
return ErrRuntimeFinalized
@@ -191,8 +191,8 @@ func WithHooksDir(hooksDir string, dirNotExistFatal bool) RuntimeOption {
return errors.Wrap(ErrInvalidArg, "empty-string hook directories are not supported")
}
- rt.config.HooksDir = hooksDir
- rt.config.HooksDirNotExistFatal = dirNotExistFatal
+ rt.config.HooksDir = []string{hooksDir}
+ rt.config.HooksDirNotExistFatal = true
return nil
}
}