Skip to content

Fix gitlab_user datasource crash

Adam Snyder requested to merge github/fork/armsnyder/841-user-panic into master

Description

fixes #841 (closed)

We do not have a created_at attribute on the gitlab_user resource; only the data-source.

I'm not sure why the panic was not caught in our tests, but I assume it has to do with how we create the users in the test. The stack trace in the bug report made this bug very obvious, so I'm confident in the change regardless.

@nagyv Could you release a patch after merging this please? (This is a regression in 3.9.0 resulting from #725)

PR Checklist

  • Resource attributes match 1:1 the names and structure of the API resource in the GitLab API documentation.
  • Examples are updated with:
    • A *.tf file for the resource/s with at least one usage example
    • A *.sh file for the resource/s with an import example (if applicable)
  • New resources have at minimum a basic test with three steps:
    • Create the resource
    • Update the attributes
    • Import the resource
  • No new //lintignore comments that came from copied code. Linter rules are meant to be enforced on new code.

Merge request reports