Skip to content

Commit

Permalink
issue-423- commit-2
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-dalvi committed Jun 23, 2016
1 parent 345ccd6 commit 9e0e5ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions netmaster/objApi/apiController.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,16 +246,16 @@ func (ac *APIController) AppProfileCreate(prof *contivModel.AppProfile) error {
}
}

// Setup links
modeldb.AddLink(&prof.Links.Tenant, tenant)
modeldb.AddLinkSet(&tenant.LinkSets.AppProfiles, prof)

err := tenant.Write()
if err != nil {
log.Errorf("Error updating tenant state(%+v). Err: %v", tenant, err)
return err
}

// Setup links
modeldb.AddLink(&prof.Links.Tenant, tenant)
modeldb.AddLinkSet(&tenant.LinkSets.AppProfiles, prof)

CreateAppNw(prof)
return nil
}
Expand Down

0 comments on commit 9e0e5ee

Please sign in to comment.