Make launch mole bridge pod job avoid launching pods if owner is a user
Context
There's a bug in the LaunchMoleBridgePod
job, when you request a simulation as a user not being part of an org, the owner field is set to the username, and therefore this block fails:
owner := subtSim.GetOwner()
if owner != nil {
org, em := s.Services().Users().GetOrganization(*owner)
if em != nil {
return nil, em.BaseError
}
teamID = int(org.ID)
}
Change
This MR makes the avoid launching the mole bridge pod if the owner is not an org.