Actions
Bug #7093
closedHammer remove-sync-plan adds sync-plan instead of removing it
Difficulty:
Triaged:
Yes
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1121136
Description of problem:
1) afaik, product can have at most one syncplan assigned to itself
2) therefore I should be able to "hammer -d -v -u admin -p changeme product remove-sync-plan --id='95'" to remove any asociated syncplan
3) in reality, error "(option '--sync_plan_id' is required)" is returned
4) if I supply valid sync-plan-id it is not removed, but set as the products sync-plan
i.e: hammer -d -v -u admin -p changeme product remove-sync-plan --id='95' --sync-plan-id='14'
actually sends:
[ INFO 2014-07-18 08:49:11 API] PUT /katello/api/products/95
[DEBUG 2014-07-18 08:49:11 API] Params: {
"sync_plan_id" => "14"
}
Actions