Bug #20218
closedsync_plan['id'] missing in products#index
Description
GET https://katello.example.com/katello/api/v2/products?name=Red Hat Enterprise Linux Server&organization_id=1
Current:
{
...,
"results": [
{
"id": 6,
...,
"sync_plan": {
"name": "Weekly RHEL Sync",
"description": null,
"sync_date": "2017-01-01 00:00:00 UTC",
"interval": "weekly",
"next_sync": null
},
"repository_count": 3
}
]
}
Expected:
{
...,
"results": [
{
"id": 6,
...,
"sync_plan": {
"id": 10,
"name": "Weekly RHEL Sync",
"description": null,
"sync_date": "2017-01-01 00:00:00 UTC",
"interval": "weekly",
"next_sync": null
},
"repository_count": 3
}
]
}