summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
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 965eb8cc5..f5df3349f 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -649,7 +649,7 @@ func WithPodName(name string) PodCreateOption {
return errors.Wrapf(ErrInvalidArg, "name must match regex [a-zA-Z0-9_-]+")
}
- pod.name = name
+ pod.config.Name = name
return nil
}
@@ -662,9 +662,9 @@ func WithPodLabels(labels map[string]string) PodCreateOption {
return ErrPodFinalized
}
- pod.labels = make(map[string]string)
+ pod.config.Labels = make(map[string]string)
for key, value := range labels {
- pod.labels[key] = value
+ pod.config.Labels[key] = value
}
return nil