mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #76540 from ialidzhikov/glusterfs-uneffectual-assignment
Remove ineffectual assignment
This commit is contained in:
commit
fc545587e4
@ -328,7 +328,6 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
|
||||
|
||||
if b.readOnly {
|
||||
options = append(options, "ro")
|
||||
|
||||
}
|
||||
|
||||
// Check for log-file,log-level options existence in user supplied mount options, if provided, use those.
|
||||
@ -348,7 +347,6 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
|
||||
|
||||
// If logfile has not been provided, create driver specific log file.
|
||||
if !hasLogFile {
|
||||
log = ""
|
||||
p := path.Join(b.glusterfs.plugin.host.GetPluginDir(glusterfsPluginName), b.glusterfs.volName)
|
||||
if err := os.MkdirAll(p, 0750); err != nil {
|
||||
return fmt.Errorf("failed to create directory %v: %v", p, err)
|
||||
@ -361,7 +359,6 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
|
||||
|
||||
// Use derived log file in gluster fuse mount
|
||||
options = append(options, "log-file="+log)
|
||||
|
||||
}
|
||||
|
||||
if !hasLogLevel {
|
||||
|
Loading…
Reference in New Issue
Block a user