File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,7 @@ func deleteProfile(profile *config.Profile) error {
329
329
330
330
// In case DeleteHost didn't complete the job.
331
331
deleteProfileDirectory (profile .Name )
332
+ deleteMachineDirectories (cc )
332
333
333
334
if err := deleteConfig (profile .Name ); err != nil {
334
335
return err
@@ -496,6 +497,15 @@ func deleteProfileDirectory(profile string) {
496
497
}
497
498
}
498
499
500
+ func deleteMachineDirectories (cc * config.ClusterConfig ) {
501
+ if cc != nil {
502
+ for _ , n := range cc .Nodes {
503
+ machineName := driver .MachineName (* cc , n )
504
+ deleteProfileDirectory (machineName )
505
+ }
506
+ }
507
+ }
508
+
499
509
// killMountProcess kills the mount process, if it is running
500
510
func killMountProcess () error {
501
511
pidPath := filepath .Join (localpath .MiniPath (), constants .MountProcessFileName )
You can’t perform that action at this time.
0 commit comments