Skip to content

Commit

Permalink
fix bookmark manager crashes when vagrant provider detection does not…
Browse files Browse the repository at this point in the history
… detect a valid provider
  • Loading branch information
amitailanciano committed Sep 23, 2014
1 parent 20ee704 commit 3b4f091
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Vagrant Manager/VagrantManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ - (NSString*)detectVagrantProvider:(NSString*)path {
return @"virtualbox";
} else if([fileManager fileExistsAtPath:[NSString stringWithFormat:@"%@/.vagrant/machines/%@/parallels", path, machinePath]]) {
return @"parallels";
} else if([fileManager fileExistsAtPath:[NSString stringWithFormat:@"%@/.vagrant/machines/%@/vmware_workstation", path, machinePath]]) {
return @"vmware_workstation";
} else if([fileManager fileExistsAtPath:[NSString stringWithFormat:@"%@/.vagrant/machines/%@/vmware_fusion", path, machinePath]]) {
return @"vmware_fusion";
} else if([fileManager fileExistsAtPath:[NSString stringWithFormat:@"%@/.vagrant/machines/%@/docker", path, machinePath]]) {
return @"docker";
}
}
}
Expand Down

0 comments on commit 3b4f091

Please sign in to comment.