[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] Grinder 0.91



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/29/2011 01:01 PM, John Matthews wrote:
> If you are running from git, please upgrade to grinder 0.91.
> 
> Grinder 0.91 allows the ability to limit the bandwidth used per thread.
> 
> _______________________________________________
> Pulp-list mailing list
> Pulp-list redhat com
> https://www.redhat.com/mailman/listinfo/pulp-list


+        limit = repo_params.get('limit', None)
+        if limit:
+            try:
+                limit = int(limit)
+            except:
+                return self.bad_request('Unable to convert "limit" with
value [%s] to an int' % (limit))

Good call on parsing this and returning the proper REST response. Might
also want to add in checks to make sure it's not negative or 0.

- -- 
Jay Dobies
RHCE# 805008743336126
Freenode: jdob
http://pulpproject.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNkhDPAAoJEOMmcTqOSQHC4TgH/3+3u7haUUSOKUDNZGGpDQYR
SxoZGqJIXWzvf9ttjR43HaBRcilT4eWKOKob8HBxldET2drxeyk6LFRunjZvFBEJ
ct3W8dD5EVrCHXZrjA3oI9fDUx5epOIPbDl4YQDktn/WVcpXoEZo7xzaXMSBPqAq
9jfHsXO6C7jF3XiBmZ6Ve6vP3zg345oJW/idy3lSrz5TaMMfoYEJhfez6jnUSG7i
R7oRxBl+fM7y+3PtPgFZpjfJkzFp99T4bCT0wXYmccHMOytSPauSh9AvEZ40tN6I
mD8FjhTbhZwF2rUcfq6TfT5vvaN7+lcfCA7dlbDmk3SKWwDD+hAXu1MfcHYrzDw=
=DGjA
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]