Bug 856642 - RFE: Allow Distributors to be Specified as Hashes on Repository Creation
Summary: RFE: Allow Distributors to be Specified as Hashes on Repository Creation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 2.0.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 40
Assignee: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: katello-v2-pulp
TreeView+ depends on / blocked
 
Reported: 2012-09-12 14:02 UTC by Eric Helms
Modified: 2013-09-09 16:31 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-09 17:09:04 UTC
Embargoed:


Attachments (Terms of Use)

Description Eric Helms 2012-09-12 14:02:56 UTC
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
}]

Comment 1 Jay Dobies 2012-10-05 17:30:56 UTC
Merge pull request #95 from pulp/jdob-856642

856642 - Changed the signature for create with distributors to be

commit 022cd57d8347ce0256de445249b839f73a6897aa

Comment 2 Jeff Ortel 2012-10-05 21:43:10 UTC
build: 0.331

Comment 3 Jason Connor 2012-11-08 05:00:19 UTC
This one looks good

Comment 4 Preethi Thomas 2012-11-08 13:59:57 UTC
Moving to verified as per comment#3

Comment 5 Preethi Thomas 2013-01-09 17:09:04 UTC
Pulp v2.0 released


Note You need to log in before you can comment on or make changes to this bug.