Skip to content

Commit

Permalink
Fix static check error
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy.McCullough committed Nov 15, 2021
1 parent e3d2bb5 commit ed06e99
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func (VirtualDesktopHostPoolRegistrationInfoResource) Exists(ctx context.Context
}

resp, err := clients.DesktopVirtualization.HostPoolsClient.Get(ctx, id.ResourceGroup, id.HostPoolName)
if err != nil {
return nil, fmt.Errorf("reading %s: %+v", *id, err)
}
exists := resp.ID != nil && resp.HostPoolProperties != nil && resp.HostPoolProperties.RegistrationInfo != nil && len(*resp.HostPoolProperties.RegistrationInfo.Token) > 0

return utils.Bool(exists), nil
Expand Down

0 comments on commit ed06e99

Please sign in to comment.