Skip to content

Commit

Permalink
logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofallops committed Jun 2, 2020
1 parent 85f7a7a commit c9f0110
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func dataSourceArmBlueprintDefinitionRead(d *schema.ResourceData, meta interface
}

if resp.ID == nil || *resp.ID == "" {
d.SetId(*resp.ID)
} else {
return fmt.Errorf("Failed to retrieve ID for Blueprint %q", name)
} else {
d.SetId(*resp.ID)
}

if resp.Description != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ func dataSourceArmBlueprintPublishedVersionRead(d *schema.ResourceData, meta int
}

if resp.ID == nil || *resp.ID == "" {
d.SetId(*resp.ID)
} else {
return fmt.Errorf("Failed to retrieve ID for Blueprint %q Version %q", blueprintName, versionID)
} else {
d.SetId(*resp.ID)
}

if resp.Type == nil {
Expand Down

0 comments on commit c9f0110

Please sign in to comment.