Skip to content

Commit

Permalink
feat: allow to export project with update_project flag (redhat-cop#913)
Browse files Browse the repository at this point in the history
* feat: allow to project update

* fix: typo

* fix: missing dot

---------

Co-authored-by: Przemyslaw Kalitowski <[email protected]>
  • Loading branch information
przemkalit and Przemyslaw Kalitowski authored Sep 23, 2024
1 parent 11b12e2 commit 4c3c2d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/filetree_create/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ The following variables are required for that role to work properly:
| `omit_id` | N/A | no | bool | Whether to create output files without objects id.|
| `organization`| N/A | no | str | Default organization for all objects that have not been set in the source controller.|
| `export_related_objects` | False | no | bool | Whether to export related objects (job templates related to certain workflows and the projects associated with these job templates) when a single JT or a single WFJT are being exported. |
| `update_project_state` | False | no | bool | Whether the project should be updated after import to the target controller. |

## Dependencies

Expand Down
1 change: 1 addition & 0 deletions roles/filetree_create/templates/current_projects.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ controller_projects:
default_environment: "{{ current_job_templates_asset_value.summary_fields.default_environment.name }}"
{% endif %}
allow_override: "{{ current_projects_asset_value.allow_override }}"
update_project: "{{ update_project_state | default(false) }}"
timeout: {{ current_projects_asset_value.timeout }}
{% if query_notification_error | length > 0 %}
notification_templates_error:
Expand Down

0 comments on commit 4c3c2d6

Please sign in to comment.