Fix instance launch dialog under MSIE11
The novaAPI.getFlavors() call takes only a single parameter, which should be an object with params. But it is being called with two parameters here, both "true", which makes IE11 fail with TypeError later on, when it tries to iterate over keys of params. Change-Id: I0dcfcdca3dda2d94509d7a574184e7f82f21ca22 Closes-Bug: #1694574
This commit is contained in:
parent
3bc399f3ae
commit
afb31d55ad
|
@ -237,7 +237,10 @@
|
|||
|
||||
promise = $q.all([
|
||||
novaAPI.getAvailabilityZones().then(onGetAvailabilityZones, noop),
|
||||
novaAPI.getFlavors(true, true).then(onGetFlavors, noop),
|
||||
novaAPI.getFlavors({
|
||||
is_public: true,
|
||||
get_extras: true
|
||||
}).then(onGetFlavors, noop),
|
||||
novaAPI.getKeypairs().then(onGetKeypairs, noop),
|
||||
novaAPI.getLimits(true).then(onGetNovaLimits, noop),
|
||||
securityGroup.query().then(onGetSecurityGroups, noop),
|
||||
|
|
|
@ -459,13 +459,9 @@
|
|||
* The listing result is an object with property "items". Each item is
|
||||
* a flavor.
|
||||
*
|
||||
* @param {boolean} isPublic (optional)
|
||||
* True if public flavors should be returned. If not specified, the API
|
||||
* will return public flavors by default for Admins and only project
|
||||
* flavors for non-admins.
|
||||
* @param {boolean} getExtras (optional)
|
||||
* Also retrieve the extra specs. This is expensive (one extra underlying
|
||||
* call per flavor).
|
||||
* @param {Object} params (optional)
|
||||
* Parameters that should be passed to the API call. Currently those can
|
||||
* be "is_public" and "get_extras", both of them boolean.
|
||||
* @returns {Object} The result of the API call
|
||||
*/
|
||||
function getFlavors(params) {
|
||||
|
|
Loading…
Reference in New Issue