Commit 863c23f
committed
Azure: Fix bug on update_skus
This commit fixes the decision criteria to return the existing SKUs
instead of creating new ones on `update_skus`.
The old command was trying to infer the number of the disk images for
each version, which is not the correct way of doing this nor was
properly working.
The new criteria is the following:
1. The private method _all_skus_present will evaluate which image types
are already declared in the SKUs
2. If there's a disk versino which contains an image which declares a
type not already present in the SKUs it will return `False`,
indicating the need to generate the new SKUs and `True` otherwise.
Refers to SPSTRAT-514
Signed-off-by: Jonathan Gangi <[email protected]>1 parent 1dca922 commit 863c23f
2 files changed
+39
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
| |||
352 | 357 | | |
353 | 358 | | |
354 | 359 | | |
355 | | - | |
| 360 | + | |
356 | 361 | | |
357 | 362 | | |
358 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
487 | 515 | | |
488 | 516 | | |
489 | 517 | | |
| |||
0 commit comments