Skip to content

Commit

Permalink
Merge pull request #9124 from rook/mergify/bp/release-1.7/pr-9122
Browse files Browse the repository at this point in the history
core: fail if config dir creation fails (backport #9122)
  • Loading branch information
mergify[bot] committed Nov 8, 2021
2 parents 9148ebf + 5a05400 commit ed1e39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/ceph/client/config.go
Expand Up @@ -115,7 +115,7 @@ func generateConfigFile(context *clusterd.Context, clusterInfo *ClusterInfo, pat

// create the config directory
if err := os.MkdirAll(pathRoot, 0744); err != nil {
logger.Warningf("failed to create config directory at %q. %v", pathRoot, err)
return "", errors.Wrapf(err, "failed to create config directory at %q", pathRoot)
}

configFile, err := createGlobalConfigFileSection(context, clusterInfo, globalConfig)
Expand Down

0 comments on commit ed1e39e

Please sign in to comment.