Project

General

Profile

Actions

Bug #23999

closed

Exporting templates does not work properly when organization_id specified

Added by Ondřej Pražák over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Description of problem:
Importing works for organization_id into a target organization but export dumps all templates even though the organization_id is specified.

Steps to Reproduce:
Attempt to export template in org/loc:

  1. curl -H "Accept: application/json" -H "Content-Type: application/json" -k -X POST -u admin:changeme https://$(hostname)/api/v2/templates/export -d '{"verbose":"true", "repo":"/usr/share/foreman_templates/test-b7c98b75-4dd1-4b6a-b424-35b0f48c25db/", "organization_id":8}'
Actions

Also available in: Atom PDF