Bump the maximum customization script size to 64kB
Nova API now allows up to 64kB for the customization script, so we can increase the limit on our side. However, the limit is calculated on Base64-encoded text, which is 33% bigger, so we have to adjust the limit accordingly. Signed-off-by: Radomir Dopieralski <openstack@dopieralski.pl> Change-Id: I308a54c8864e96abf84a51c265d3e9a82030382c
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var MAX_SCRIPT_SIZE = 16 * 1024;
|
||||
/* 64kB, adjusted for Base64 encoding. */
|
||||
var MAX_SCRIPT_SIZE = 64 * 1024 * 0.75;
|
||||
|
||||
angular
|
||||
.module('horizon.dashboard.project.workflow.launch-instance')
|
||||
|
@@ -38,7 +38,7 @@
|
||||
});
|
||||
|
||||
it('sets the user data max script size', function() {
|
||||
expect(ctrl.MAX_SCRIPT_SIZE).toBe(16 * 1024);
|
||||
expect(ctrl.MAX_SCRIPT_SIZE).toBe(64 * 1024 * 0.75);
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user