Skip to content

Commit

Permalink
Added in nil checking for "d" and "m" args
Browse files Browse the repository at this point in the history
  • Loading branch information
AdminTurnedDevOps committed Sep 17, 2020
1 parent 6142b99 commit 4de95b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions octopusdeploy/resource_sshkey_account.go
Expand Up @@ -32,6 +32,14 @@ func resourceSSHKey() *schema.Resource {
}

func resourceSSHKeyRead(d *schema.ResourceData, m interface{}) error {
if d == nil {
return createInvalidParameterError("resourceSSHKeyRead", "d")
}

if m == nil {
return createInvalidParameterError("resourceSSHKeyRead", "m")
}

apiClient := m.(*client.Client)

accountID := d.Id()
Expand Down

0 comments on commit 4de95b3

Please sign in to comment.