resource/gitlab_user_sshkey: Ignore leading and trailing whitespaces in key

This change set handles ssh keys with leading or trailing whitespaces gracefully - they are simply ignored when diffing and there won't trigger an update.

This is a probably a common source of issue when using it together with tls_private_key.public_key_openssh which appends a newline.

Closes: #1174 (closed)

Merge request reports

Loading