verified
[root@cloud-qe-12 ~]# rpm -qa pulp-server
pulp-server-2.6.1-0.2.beta.el6.noarch
[root@cloud-qe-12 ~]#
>>>
>>> from pulp.common import pic
>>> pic.connect()
>>> pic.POST('/v2/repositories/fakeforge/distributors/', {'distributor_type_id':'puppet_install_distributor', 'distributor_id':'puppet_tmp_install_distributor', 'auto_publish': False, 'distributor_config': {'install_path':'/etc/puppet/myforges/fakeforge'}}
... )
Request Body
{
"distributor_id": "puppet_tmp_install_distributor",
"distributor_type_id": "puppet_install_distributor",
"distributor_config": {
"install_path": "/etc/puppet/myforges/fakeforge"
},
"auto_publish": false
}
Response Body
{
"repo_id": "fakeforge",
"_href": "/pulp/api/v2/repositories/fakeforge/distributors/puppet_tmp_install_distributor/",
"_ns": "repo_distributors",
"last_publish": null,
"auto_publish": false,
"scheduled_publishes": [],
"distributor_type_id": "puppet_install_distributor",
"scratchpad": null,
"_id": {
"$oid": "551c277353173a4cb6b0de05"
},
"config": {
"install_path": "/etc/puppet/myforges/fakeforge"
},
"id": "puppet_tmp_install_distributor"
}
(201, {u'repo_id': u'fakeforge', u'_href': u'/pulp/api/v2/repositories/fakeforge/distributors/puppet_tmp_install_distributor/', u'_ns': u'repo_distributors', u'last_publish': None, u'auto_publish': False, u'scheduled_publishes': [], u'distributor_type_id': u'puppet_install_distributor', u'scratchpad': None, u'_id': {u'$oid': u'551c277353173a4cb6b0de05'}, u'config': {u'install_path': u'/etc/puppet/myforges/fakeforge'}, u'id': u'puppet_tmp_install_distributor'})
>>>
>>>
>>>
>>> pic.connect()
>>> pic.POST('/v2/repositories/fakeforge/distributors/', {'distributor_type_id':'puppet_install_distributor', 'distributor_id':'puppet_tmp_install_distributor', 'auto_publish': False, 'distributor_config': {'install_path':'/etc/puppet/myforges/fakeforge'}})
Request Body
{
"distributor_id": "puppet_tmp_install_distributor",
"distributor_type_id": "puppet_install_distributor",
"distributor_config": {
"install_path": "/etc/puppet/myforges/fakeforge"
},
"auto_publish": false
}
Response Body
{
"repo_id": "fakeforge",
"_href": "/pulp/api/v2/repositories/fakeforge/distributors/puppet_tmp_install_distributor/",
"_ns": "repo_distributors",
"last_publish": null,
"auto_publish": false,
"scheduled_publishes": [],
"distributor_type_id": "puppet_install_distributor",
"scratchpad": null,
"_id": {
"$oid": "551c278d53173a4cb8f778d3"
},
"config": {
"install_path": "/etc/puppet/myforges/fakeforge"
},
"id": "puppet_tmp_install_distributor"
}
(201, {u'repo_id': u'fakeforge', u'_href': u'/pulp/api/v2/repositories/fakeforge/distributors/puppet_tmp_install_distributor/', u'_ns': u'repo_distributors', u'last_publish': None, u'auto_publish': False, u'scheduled_publishes': [], u'distributor_type_id': u'puppet_install_distributor', u'scratchpad': None, u'_id': {u'$oid': u'551c278d53173a4cb8f778d3'}, u'config': {u'install_path': u'/etc/puppet/myforges/fakeforge'}, u'id': u'puppet_tmp_install_distributor'})
>>>
<\pre>
Merge pull request #663 from beav/remove-27ism
Remove a py2.7-ism