Commit 648ab3c
committed
Guard optional description when preserving it in Update-ConfluenceSpace
When -Description is omitted, Update-ConfluenceSpace read the current value via \.description.plain.value. 'description' is optional in the v2 space response, so for a space without one this either yielded nothing or would throw under Set-StrictMode. Navigate it defensively and fall back to an empty string so the preserve-existing-description behavior works for description-less spaces (review thread on Update-ConfluenceSpace L55).1 parent 7e225b1 commit 648ab3c
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
55 | 66 | | |
56 | 67 | | |
57 | 68 | | |
| |||
0 commit comments