]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: machines Fix undefined variables
authorMichael Wood <michael.g.wood@intel.com>
Fri, 30 Jan 2015 18:18:44 +0000 (18:18 +0000)
committerAlexandru DAMIAN <alexandru.damian@intel.com>
Mon, 9 Feb 2015 17:54:34 +0000 (17:54 +0000)
pagesize and orderby were undefined causing an error to be thrown when
browsing to the all machines page

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
lib/toaster/toastergui/views.py

index 9567e626be71e25314909450eb4af02e9e4c2ffa..73a5c7e99fa07126f83a6ed88ee0d91321ae3e66 100755 (executable)
@@ -2774,6 +2774,7 @@ if toastermain.settings.MANAGED:
         # define here what parameters the view needs in the GET portion in order to
         # be able to display something.  'count' and 'page' are mandatory for all views
         # that use paginators.
+        (pagesize, orderby) = _get_parameters_values(request, 10, 'updated:+')
         mandatory_parameters = { 'count': 10,  'page' : 1, 'orderby' : 'name:+' };
         retval = _verify_parameters( request.GET, mandatory_parameters )
         if retval: