Commit 3dfb89a
authored
Fix a case when deleting element when looping (vmware-tanzu#1385)
When deleting stale entries in volume status, store the indexes first,
then deletes them in a way without shifting indexes before deleting next one.1 parent 5874b7e commit 3dfb89a
File tree
2 files changed
+37
-4
lines changed- pkg/providers/vsphere/vmlifecycle
2 files changed
+37
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1317 | 1317 | | |
1318 | 1318 | | |
1319 | 1319 | | |
| 1320 | + | |
| 1321 | + | |
1320 | 1322 | | |
1321 | 1323 | | |
1322 | 1324 | | |
1323 | 1325 | | |
1324 | | - | |
1325 | | - | |
| 1326 | + | |
1326 | 1327 | | |
1327 | 1328 | | |
1328 | 1329 | | |
1329 | 1330 | | |
1330 | 1331 | | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1331 | 1343 | | |
1332 | 1344 | | |
1333 | 1345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1742 | 1742 | | |
1743 | 1743 | | |
1744 | 1744 | | |
1745 | | - | |
| 1745 | + | |
1746 | 1746 | | |
1747 | 1747 | | |
1748 | 1748 | | |
| |||
1754 | 1754 | | |
1755 | 1755 | | |
1756 | 1756 | | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
1757 | 1766 | | |
1758 | 1767 | | |
1759 | 1768 | | |
1760 | | - | |
| 1769 | + | |
1761 | 1770 | | |
1762 | 1771 | | |
1763 | 1772 | | |
1764 | 1773 | | |
1765 | 1774 | | |
1766 | 1775 | | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
1767 | 1784 | | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
1768 | 1789 | | |
1769 | 1790 | | |
1770 | 1791 | | |
| |||
0 commit comments