Skip to content

Commit acfb6fe

Browse files
author
dwc0011
committed
Remvoe copy pasta
1 parent 6c3a10e commit acfb6fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

builder/azure/chroot/step_mount_device.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ type StepMountDevice struct {
3030
MountPartition string
3131
MountPath string
3232

33-
mountPath string
34-
isManualMount bool
33+
mountPath string
34+
isManualMount bool
3535
}
3636

3737
func (s *StepMountDevice) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
@@ -87,7 +87,7 @@ func (s *StepMountDevice) Run(ctx context.Context, state multistep.StateBag) mul
8787

8888
ui.Say("Mounting the root device...")
8989
stderr := new(bytes.Buffer)
90-
if !isManualMount{
90+
if !isManualMount {
9191
// build mount options from mount_options config, useful for nouuid options
9292
// or other specific device type settings for mount
9393
opts := ""
@@ -105,7 +105,7 @@ func (s *StepMountDevice) Run(ctx context.Context, state multistep.StateBag) mul
105105
log.Printf("[DEBUG] (step mount) mount command is %s", mountCommand)
106106
cmd := common.ShellCommand(mountCommand)
107107

108-
}else {
108+
} else {
109109
log.Printf("[DEBUG] (step mount) mount command is %s", s.Command)
110110
cmd := common.ShellCommand(fmt.Sprintf("%s %s", s.Command, mountPath))
111111
}
@@ -155,8 +155,8 @@ func (s *StepMountDevice) CleanupFunc(state multistep.StateBag) error {
155155
return fmt.Errorf("error unmounting root device: %s", err)
156156
}
157157
} else {
158-
ui.Say("Skipping Unmounting the root device, it is manually unmounted via manual mount command script...")ui.Say("Skipping Unmounting the root device, it is manually unmounted via manual mount command script...")
158+
ui.Say("Skipping Unmounting the root device, it is manually unmounted via manual mount command script...")
159159
}
160-
s.mountPath = ""
160+
s.mountPath = ""
161161
return nil
162162
}

0 commit comments

Comments
 (0)