Project

General

Profile

Actions

Bug #7093

closed

Hammer remove-sync-plan adds sync-plan instead of removing it

Added by Adam Price almost 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF