Bug 856642

Summary: RFE: Allow Distributors to be Specified as Hashes on Repository Creation
Product: [Retired] Pulp Reporter: Eric Helms <ehelms>
Component: user-experienceAssignee: Jay Dobies <jason.dobies>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0.6CC: 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    

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