Skip to content

Commit

Permalink
reviewble fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaanandM committed Sep 30, 2024
1 parent e49cbfe commit b834d60
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spectrocloud/resource_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func resourceApplication() *schema.Resource {
}

func resourceApplicationCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
c := getV1ClientWithResourceContext(m, "tenant")
resourceContext := ""
// Warning or errors can be collected in a slice type
var diags diag.Diagnostics

Expand All @@ -113,13 +113,12 @@ func resourceApplicationCreate(ctx context.Context, d *schema.ResourceData, m in

config = configList.([]interface{})[0].(map[string]interface{})
cluster_uid = config["cluster_uid"]
resourceContext := config["cluster_context"].(string)
c = getV1ClientWithResourceContext(m, resourceContext)
resourceContext = config["cluster_context"].(string)

} else {
return diag.FromErr(val_error)
}

c := getV1ClientWithResourceContext(m, resourceContext)
if cluster_uid == "" {
if config["cluster_group_uid"] == "" {
return diag.FromErr(val_error)
Expand Down

0 comments on commit b834d60

Please sign in to comment.