diff --git a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/configuration/configuration.controller.js b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/configuration/configuration.controller.js index 3a13c03307..1ea73264f2 100644 --- a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/configuration/configuration.controller.js +++ b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/configuration/configuration.controller.js @@ -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') diff --git a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/configuration/configuration.controller.spec.js b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/configuration/configuration.controller.spec.js index b6b45c304d..9177f380a9 100644 --- a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/configuration/configuration.controller.spec.js +++ b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/configuration/configuration.controller.spec.js @@ -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); }); });