Project

General

Profile

Bug #29310

content-view version promote uses deprecated `environment_id` parameter

Added by James Jeffers 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

[ INFO 2020-03-09T15:55:59 API] POST /katello/api/content_view_versions/2/promote
[DEBUG 2020-03-09T15:55:59 API] Params: {
    "environment_id" => "3",
             "force" => nil
}
[DEBUG 2020-03-09T15:55:59 API] Headers: {}
[DEBUG 2020-03-09T15:55:59 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth
[ERROR 2020-03-09T15:55:59 API] 400 Bad Request
[DEBUG 2020-03-09T15:55:59 API] {
    "displayMessage" => "Could not find environments for promotion",
            "errors" => [
        [0] "Could not find environments for promotion" 
    ]
}

This should be updated to use the new `environment_ids` array of values.

Associated revisions

Revision 603cd84f (diff)
Added by Justin Sherrill 8 months ago

Fixes #29310 - use environment_ids param for cv promote

History

#1 Updated by James Jeffers 8 months ago

Note the command used was: hammer -d content-view version promote --organization-id 1 --to-lifecycle-environment-id 3 --id 2

#2 Updated by Jonathon Turel 8 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.16.0

#3 Updated by Ewoud Kohl van Wijngaarden 8 months ago

  • Description updated (diff)

#4 Updated by The Foreman Bot 8 months ago

  • Assignee set to Justin Sherrill
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/727 added

#5 Updated by Justin Sherrill 8 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF