Description of problem: When running hammer import-templates several times with changed parameters, the templates are not updated -- settings from the first run still hold Version-Release number of selected component (if applicable): Satellite 6.5, 6.6 as well How reproducible: always Steps to Reproduce: 1. run the following command hammer import-templates --prefix 'Community - ' \ --filter '.*statuses$' \ --branch ea0a9cdac724a49aa6d0b89108927c6cd2c7cc50 \ 2. Note that new report template is displayed in Satellite UI under Any Org / Any Location context 3. Rerun the command with org and loc specified: hammer import-templates --prefix 'Community - ' \ --filter '.*statuses$' \ --branch ea0a9cdac724a49aa6d0b89108927c6cd2c7cc50 \ --organization 'Default Organization' \ --location 'Default Location' Import successful message is displayed. 4. View Monitor > Report Templates under Default Organization and Default Location the template is not displayed, it is still under any context. It is necessary to delete the previous import to have the next run actually complete. Actual results: described above Expected results: Either the parameters should be updated on repeating run, or a message should be displayed with warning that the update was not done Additional info:
You need to use --organization-ids, not --organization-id, that is for setting the current context. The command help says " --organization-ids ORGANIZATION_IDS REPLACE organizations with given ids." The organization-id only says " --organization-id ORGANIZATION_ID Organization ID" which is not overly helpful but I think we track there elsewhere already. Mind to retest with -ids param and close if it works?
works with --organizations --locations, closing with help clarification tracked in different bz