Skip to content

Commit

Permalink
convert options to yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
loraine-gueguen committed Aug 5, 2024
1 parent 4e3c440 commit e314e1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
port: '4567'
path: '/tmp/test-data'
placeholders: [{key: 'key_string', value: 'value1'}, {key: 'key_link', value: '<a href="http://testplaceholder.com">my favorite link</a>'}]
conf_options: [{key: 'job_lifetime', value: '10080'}, {key: 'databases_widget', value: 'tree'}]
conf_options: [{key: 'job_lifetime', value: '10080'}, {key: 'databases_widget', value: 'tree'}, {key: 'options', value: {':blastn:': {':default:': ["-task blastn", "-evalue 1e-5"], ':short-seq:': ["-task blastn-short", "-evalue 1e-1"]}}}]
sequenceserver_top_web_page_html_path: "/tmp/top_web_page.html"
sequenceserver_bottom_web_page_html_path: "/tmp/bottom_web_page.html"
sequenceserver_home_url: "http://myfavoritewebsite.com"
Expand Down
2 changes: 1 addition & 1 deletion templates/sequenceserver.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if item.conf_options is defined and item.conf_options %}
{% for option in item.conf_options %}
{% if option.key is defined and option.key and option.value is defined and option.value %}
:{{ option.key }}: '{{ option.value }}'
:{{ option.key }}: '{{ option.value | to_yaml }}'
{% endif %}
{% endfor %}
{% endif %}

0 comments on commit e314e1a

Please sign in to comment.