Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkab committed Feb 6, 2019
1 parent 673d4e4 commit 54d73d2
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -243,8 +243,8 @@ func (c *Controller) validateAPI(newAPI *kymaApi.Api, apiStatusHelper *ApiStatus

for _, a := range existingAPIs {
if a.Spec.Service.Name == targetServiceName && a.GetUID() != newAPI.GetUID() {
log.Debugf("An API has already been created for service %s", newAPI.Spec.Service.Name)
return setStatus(kymaMeta.TargetServiceOccupied, "")
log.Printf("An API has already been created for service %s", newAPI.Spec.Service.Name)
return setStatus(kymaMeta.TargetServiceOccupied, "API for the target service already exists")
}
}

Expand Down

0 comments on commit 54d73d2

Please sign in to comment.