Skip to content

Commit 99db38c

Browse files
committed
Remove useless config load
Both the ssh port and identity are provided on each run, so it is unnecessary of doing it while loading the domain. Signed-off-by: German Maglione <[email protected]>
1 parent 70116ee commit 99db38c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/vm/vm_linux.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -287,16 +287,6 @@ func (v *BootcVMLinux) loadExistingDomain() (err error) {
287287
}
288288
}
289289

290-
// if domain exists, load it's config
291-
if v.domain != nil {
292-
cfg, err := v.GetConfig()
293-
if err != nil {
294-
return fmt.Errorf("unable to load VM config: %w", err)
295-
}
296-
v.sshPort = cfg.SshPort
297-
v.sshIdentity = cfg.SshIdentity
298-
}
299-
300290
return nil
301291
}
302292

0 commit comments

Comments
 (0)