Bug 856642
| Summary: | RFE: Allow Distributors to be Specified as Hashes on Repository Creation | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Eric Helms <ehelms> |
| Component: | user-experience | Assignee: | Jay Dobies <jason.dobies> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.0.6 | CC: | jconnor, skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | Sprint 40 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-09 17:09:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 854726 | ||
Merge pull request #95 from pulp/jdob-856642 856642 - Changed the signature for create with distributors to be commit 022cd57d8347ce0256de445249b839f73a6897aa build: 0.331 This one looks good Pulp v2.0 released |
When associating a distributor with a repository via the API call, the distributor details are specified as a JSON hash of the parameters. However, during a repository creation call, a distributor(s) must be specified as an array of arrays instead of an array of hashes. Making distributor specification uniform across the API would increase consistency and make scripts/bindings to the API able to be consistent without having special case logic. Current: [["dist_1", "harness_distributor", false]] Preferred: [{ "distributor_id": "dist_1", "distributor_type_id": "harness_distributor", "distributor_config": { "publish_dir": "/tmp/harness-publish", "write_files": "true" }, "auto_publish": false }]