Project

General

Profile

Bug #25420

host_collection controller does not return host_ids key inside a POST response

Added by Christine Fouant over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Host Collections
Target version:
Difficulty:
trivial
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1645057

Description of problem:
this is a regression from 6.4

$ curl -sku admin:changeme -H "Content-Type: application/json" -d '{"name": "foo4", "organization_id": 3}' https://$(hostname)/katello/api/v2/host_collections {
"name":"foo4",
"organization_id":3,
"max_hosts":null,
"description":null,
"total_hosts":0,
"unlimited_hosts":true,
"created_at":"2018-11-01 10:36:31 UTC",
"updated_at":"2018-11-01 10:36:31 UTC",
"id":6,
"permissions":{
"deletable":true,
"editable":true
}
}

Version-Release number of selected component (if applicable):
  1. rpm -qa katello
    katello-3.9.0-0.1.rc1.el7sat.noarch

satellite6.5.0-1

Steps to Reproduce:
1. create host_collection using api (POST to katello/api/v2/host_collections)
2. observe the returned json

Actual results:
no host_ids key

Expected results:
host_id key should be returned even with an empty list

Additional info:

Associated revisions

Revision a9383fbb (diff)
Added by Christine Fouant over 3 years ago

fixes #25420 - add host_ids to host-collection create results

History

#1 Updated by The Foreman Bot over 3 years ago

  • Assignee set to Christine Fouant
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7824 added

#2 Updated by Christine Fouant over 3 years ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Andrew Kofink over 3 years ago

  • Triaged changed from No to Yes
  • Difficulty set to trivial
  • Target version set to Katello 3.9.1

Also available in: Atom PDF