summaryrefslogtreecommitdiff
path: root/libpod/in_memory_state.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2018-12-02 13:36:55 -0500
committerMatthew Heon <mheon@redhat.com>2018-12-02 13:38:36 -0500
commit137e0948aed96c3fe6412512e0d138eedf71d499 (patch)
tree24ca836a3fe6eaed4ab04dd568bc16d3b386a7c2 /libpod/in_memory_state.go
parentb0f79ff4df58c12fdfaff5c4a7c6e029cb566459 (diff)
downloadpodman-137e0948aed96c3fe6412512e0d138eedf71d499.tar.gz
podman-137e0948aed96c3fe6412512e0d138eedf71d499.tar.bz2
podman-137e0948aed96c3fe6412512e0d138eedf71d499.zip
Make DB config validation an explicit step
Previously, we implicitly validated runtime configuration against what was stored in the database as part of database init. Make this an explicit step, so we can call it after the database has been initialized. This will allow us to retrieve paths from the database and use them to overwrite our defaults if they differ. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/in_memory_state.go')
-rw-r--r--libpod/in_memory_state.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/in_memory_state.go b/libpod/in_memory_state.go
index 3a775eb43..8cd2f47b9 100644
--- a/libpod/in_memory_state.go
+++ b/libpod/in_memory_state.go
@@ -78,6 +78,12 @@ func (s *InMemoryState) GetDBConfig() (*DBConfig, error) {
return nil, ErrNotImplemented
}
+// ValidateDBConfig is not implemented for the in-memory state.
+// Since we do nothing just return no error.
+func (s *InMemoryState) ValidateDBConfig(runtime *Runtime) error {
+ return nil
+}
+
// SetNamespace sets the namespace for container and pod retrieval.
func (s *InMemoryState) SetNamespace(ns string) error {
s.namespace = ns