Issue Resource Op
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
11 11 /* save resources */ 12 12 $('#vm-details-resources-save').click(function() { 13 13 $('i.icon-save', this).removeClass("icon-save").addClass("icon-refresh icon-spin"); 14 var vm = $(this).data("vm"); 14 15 $.ajax({ 15 16 type: 'POST', 16 url: location.href, 17 url: "/dashboard/vm/" + vm + "/op/resources_change/", -
Owner
i'd find a way without concatenating strings
-
-
646 class VmResourcesChangeView(VmOperationView): 647 op = 'resources_change' 648 icon = "save" 649 show_in_toolbar = False 650 651 def post(self, request, extra=None, *args, **kwargs): 652 if extra is None: 653 extra = {} 654 655 resources = { 656 'num_cores': "cpu-count", 657 'priority': "cpu-priority", 658 'ram_size': "ram-size", 659 "max_ram_size": "ram-size", # TODO 660 } 661 for k, v in resources.iteritems(): -
Owner
validation missing
-
-
Status changed to closed
Toggle commit list