Project

General

Profile

Actions

Bug #26671

closed

Unable to import job templates that have been exported from Foreman.

Added by Ondřej Pražák about 5 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

Description of problem:

Unable to import job templates that have been exported from Foreman.

Steps to Reproduce: ==================
1. Log into the Gui--> Hosts--> Job Teamplates---> Export a job template (I used 'Install Group - Katello SSH Default').
2. Then imported the same job template. I used the Gui and check-marked the Overwrite box.

Actual results:

Got the below exception:- ========================
Unable to save
ERF45-3514 [JobTemplate::NonUniqueInputsError]: Duplicated inputs detected: ["pre_script", "package", "post_script"]

Expected results:

The template should have been imported without any exceptions.

Additional info:

Tested the same with CLI:-

[root@foreman ~]# hammer job-template export --name "Install Package - Katello SSH Default" > exporttest
[root@foreman ~]# hammer job-template import --file ./exporttest --overwrite true
Could not import the job template:
ERF45-3514 [JobTemplate::NonUniqueInputsError]: Duplicated inputs detected: ["pre_script", "package", "post_script"]

Actions #1

Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Marek Hulán
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/557 added
Actions #2

Updated by The Foreman Bot over 3 years ago

  • Fixed in Releases foreman_remote_execution 4.2.2 added
Actions #3

Updated by Marek Hulán over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Adam Ruzicka about 3 years ago

  • Subject changed from Unable to import job templates that have been exported from Foreman. to Unable to import job templates that have been exported from Foreman.
  • Fixed in Releases foreman_remote_execution-4.3.0 added
Actions

Also available in: Atom PDF