ceph: clarify mime configmap name
Honestly, I'm still wondering if this is needed, but let's not break things that are not broken. Just clarifying the name of the configmap in the logs. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
1 parent
264110948b
commit
2d09db55f7
1 file changed
+2
-2
@@ -47,12 +47,12 @@ func mimeTypesMountPath() string {
|
||||
func (c *clusterConfig) generateMimeTypes() error {
|
||||
k := k8sutil.NewConfigMapKVStore(c.store.Namespace, c.context.Clientset, c.ownerInfo)
|
||||
if _, err := k.GetValue(c.mimeTypesConfigMapName(), mimeTypesFileName); err == nil || !kerrors.IsNotFound(err) {
|
||||
logger.Infof("config map for object pool %s already exists, not overwriting", c.store.Name)
|
||||
logger.Infof("config map %q for object store %q already exists, not overwriting", c.mimeTypesConfigMapName(), c.store.Name)
|
||||
return nil
|
||||
}
|
||||
// is not found
|
||||
if err := k.SetValue(c.mimeTypesConfigMapName(), mimeTypesFileName, mimeTypes); err != nil {
|
||||
return errors.Wrapf(err, "failed to create config map for object pool %s", c.store.Name)
|
||||
return errors.Wrapf(err, "failed to create config map for object store %q", c.store.Name)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user