-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from galaxyproject/mutable-configs-19.09
Don't attempt to instantiate mutable configs from samples on >= 19.09.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
# Determine Galaxy version | ||
|
||
# Currently only used by mutable config setup but placed in an include because it'll probably be used by more | ||
|
||
- name: Collect Galaxy version file | ||
slurp: | ||
src: "{{ galaxy_server_dir }}/lib/galaxy/version.py" | ||
register: __galaxy_version_file | ||
|
||
- name: Determine Galaxy version | ||
set_fact: | ||
__galaxy_major_version: >- | ||
{{ | ||
(__galaxy_version_file['content'] | b64decode).splitlines() | ||
| select('match', 'VERSION_MAJOR\s*=.*') | first | ||
| regex_replace('^[^\d]+([.\d]+).*', '\1') | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters