Skip to content

Commit f6582f6

Browse files
committed
update: pick latest kube release for alpha version
Signed-off-by: Humble Chirammal <[email protected]>
1 parent 30b6cf3 commit f6582f6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

iscsi/iscsi.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ func pathExists(devicePath *string, deviceTransport string) error {
193193
}
194194
} else {
195195
fpath, err := filepathGlob(*devicePath)
196-
197196
if err != nil {
198197
return err
199198
}
@@ -574,7 +573,7 @@ func writeInSCSIDeviceFile(hctl string, file string, content string) error {
574573
filename := filepath.Join("/sys/class/scsi_device", hctl, "device", file)
575574
debug.Printf("Write %q in %q.\n", content, filename)
576575

577-
f, err := osOpenFile(filename, os.O_TRUNC|os.O_WRONLY, 0200)
576+
f, err := osOpenFile(filename, os.O_TRUNC|os.O_WRONLY, 0o200)
578577
if err != nil {
579578
debug.Printf("Error while opening file %v: %v\n", filename, err)
580579
return err
@@ -639,7 +638,7 @@ func PersistConnector(c *Connector, filePath string) error {
639638

640639
// Persist persists the Connector to the specified file (ie /var/lib/pfile/myConnector.json)
641640
func (c *Connector) Persist(filePath string) error {
642-
//file := path.Join("mnt", c.VolumeName+".json")
641+
// file := path.Join("mnt", c.VolumeName+".json")
643642
f, err := os.Create(filePath)
644643
if err != nil {
645644
return fmt.Errorf("error creating iSCSI persistence file %s: %s", filePath, err)

0 commit comments

Comments
 (0)