summaryrefslogtreecommitdiff
path: root/libpod/sql_state.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/sql_state.go')
-rw-r--r--libpod/sql_state.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/sql_state.go b/libpod/sql_state.go
index d69a3b58e..a1830c468 100644
--- a/libpod/sql_state.go
+++ b/libpod/sql_state.go
@@ -764,7 +764,7 @@ func (s *SQLState) AddPod(pod *Pod) (err error) {
return ErrPodRemoved
}
- labelsJSON, err := json.Marshal(pod.labels)
+ labelsJSON, err := json.Marshal(pod.config.Labels)
if err != nil {
return errors.Wrapf(err, "error marshaling pod %s labels to JSON", pod.ID())
}