Issue #790
closed_href is unecessarily nested in a dict in the response body of consumer registration
Description
$ curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X POST -k -u admin:admin -d '{"id":"c2"}' "https://localhost/pulp/api/v2/consumers/"
HTTP/1.1 201 Created
Date: Wed, 18 Mar 2015 11:57:52 GMT
Server: Apache/2.4.10 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.5 Python/2.7.5
Location: /pulp/api/v2/consumers/c2/
Content-Length: 2043
Content-Type: application/json
{"consumer": {"display_name": "c2", "description": null, "_ns": "consumers", "notes": {}, "rsa_pub": null, "capabilities": {}, "_id": {"$oid": "5509684045ef485ffe14dfae"}, "id": "c2", "_href": {"_href": "/pulp/api/v2/consumers/c2/"}}, "certificate": "-----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAKBgQC+BYPuGTtdFDIkOj8mIUJTU1pG4ezkQwxxFF/9+7+tIheHWCeO-----END RSA PRIVATE KEY-----\n-----BEGIN CERTIFICATE-----\nMIICWDCCAUACAgDgMA0GCSqGSIb3DQEBBQUAMDAxHzAdBgNVBAMMFmluYS51c2Vy\nc3lzLnJlZGhhk/PGi+3w4dimAHkLQXved5SU//tJOumYp/tzOjlskgCCzmyozyHqBOepTW96\nx1SLCqi2jU+b7NMcJ4qaR3ZHMknWoR9j8wsXyg==\n-----END CERTIFICATE-----"}
Fix
pulp_common : Collect static content
sporadically failingwhen using a shared filesystem (.e.g, NFS) for
/var/lib/pulp
by running it sequentially across multiple Pulp nodes.fixes: #790