https://github.com/ging/horizon
Revision 5dedb5d5834d23771b4e378269c434d0c7f91273 authored by Akihiro MOTOKI on 15 September 2013, 20:40:24 UTC, committed by Akihiro MOTOKI on 23 September 2013, 10:36:22 UTC
When showing a form of launching an instance, image_list_detailed is called twice. populate_image_id_choices and populate_instance_snapshot_id_choices both call get_available_images(). get_available_images() supports the cache of image list and it is better to share the cache by both methods. Closes-Bug: #1229080 Fixes a bug that utils.get_available_images() raises a traceback when image_list for a project raises an exception. Closes-Bug: #1229083 Add unittests for images_and_snapshots.utils to cover the above two fixes. Change-Id: I829a430c84e48de4faf028bdfad74b0cd8f22dc9
1 parent 4586248
Tip revision: 5dedb5d5834d23771b4e378269c434d0c7f91273 authored by Akihiro MOTOKI on 15 September 2013, 20:40:24 UTC
Reduce image_list_detailed calls
Reduce image_list_detailed calls
Tip revision: 5dedb5d
File | Mode | Size |
---|---|---|
.tx | ||
doc | ||
horizon | ||
openstack_dashboard | ||
tools | ||
.gitignore | -rw-r--r-- | 377 bytes |
.gitreview | -rw-r--r-- | 76 bytes |
.mailmap | -rw-r--r-- | 519 bytes |
.pylintrc | -rw-r--r-- | 1.4 KB |
HACKING.rst | -rw-r--r-- | 411 bytes |
LICENSE | -rw-r--r-- | 9.9 KB |
MANIFEST.in | -rw-r--r-- | 654 bytes |
Makefile | -rw-r--r-- | 588 bytes |
README.rst | -rw-r--r-- | 3.1 KB |
manage.py | -rwxr-xr-x | 292 bytes |
openstack-common.conf | -rw-r--r-- | 194 bytes |
requirements.txt | -rw-r--r-- | 505 bytes |
run_tests.sh | -rwxr-xr-x | 12.7 KB |
setup.cfg | -rw-r--r-- | 1.0 KB |
setup.py | -rwxr-xr-x | 794 bytes |
test-requirements.txt | -rw-r--r-- | 289 bytes |
tox.ini | -rw-r--r-- | 1.1 KB |
Computing file changes ...