Commit acd7c9b
committed
fix: expires not cleared in state when token has no expiry
When NetBox returns a token with no expiration, the Read function skipped
the d.Set call entirely, leaving any previous expires value in state.
Explicitly set expires to nil when the API returns no expiration date to
prevent state drift.1 parent 817c5da commit acd7c9b
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
0 commit comments