Commit c71bf38
committed
plugins/vmimage: Avoid network calls when listing cached images
In list_downloaded_images(), prevent unnecessary network calls by
setting provider._best_version from metadata after creating the
provider, and using metadata values directly instead of provider
properties which may trigger network lookups.
This fixes cascading failures where listing cached non-Fedora images
would trigger network calls to Fedora servers.
Reference: avocado-framework#6266
Assisted-By: Cursor-Claude-4-Sonnet
Signed-off-by: Harvey Lynden <hlynden@redhat.com>1 parent 33bb0da commit c71bf38
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | | - | |
50 | | - | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
0 commit comments