Commit af48b61
committed
AWS: add fallback for build_info.version
This commit adds a fallback for loading the `version` from an existing
AMI whenever such information is not present in the `push_item.build`.
With this change it will look for the
`push_item.build_info.version` whenever the `push_item.build` is not
properly set, which may happen when using a staging structure to load an
existing AMI.
Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
Assisted-by: Cursor/Gemini1 parent 7336dcd commit af48b61
2 files changed
Lines changed: 36 additions & 1 deletion
File tree
- src/pubtools/_marketplacesvm/cloud_providers
- tests/cloud_providers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
411 | 414 | | |
412 | 415 | | |
413 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
285 | 317 | | |
286 | 318 | | |
287 | 319 | | |
| |||
0 commit comments