Skip to content

Commit

Permalink
moved the error
Browse files Browse the repository at this point in the history
  • Loading branch information
girishramnani-crest committed Aug 17, 2017
1 parent 44a3744 commit de493e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vsphere/resource_vsphere_license.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,10 @@ func resourceVSphereLicenseCreate(d *schema.ResourceData, meta interface{}) erro

case "VirtualCenter":
info, err = manager.Add(context.TODO(), key, nil)

err := updateLabels(manager, key, labelMap)
if err != nil {
return err
}
err = updateLabels(manager, key, labelMap)

default:
return fmt.Errorf("unsupported ApiType: %s", t)
Expand Down

0 comments on commit de493e3

Please sign in to comment.