Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
changed order of rounding to ensure that the resulting number is of t…
Browse files Browse the repository at this point in the history
…ype integer
  • Loading branch information
CalvinHuynh committed Jun 11, 2019
1 parent 431ce9e commit ccd4575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/local/tasks/set-default-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
jiskefet_user: "{{ jiskefet_user if ((jiskefet_user is defined) and (jiskefet_user | trim != '')) else 'jiskefet'}}"
remote_privileged_user: "{{ remote_privileged_user if ((remote_privileged_user is defined) and (remote_privileged_user | trim != '')) else 'root'}}"
deploy_environment: "{{ deploy_environment if ((deploy_environment is defined) and (deploy_environment | trim != '')) else 'prod'}}"
database_packet_limit: "{{ (( file_upload_limit | int ) * 1024 * 1024 * 1.5) | int | round }}" # rounding the numbers
database_packet_limit: "{{ (( file_upload_limit | int ) * 1024 * 1024 * 1.5) | round | int }}" # rounding the numbers
remote_repository_url:
JISKEFET_API: "{{ remote_repository_url.JISKEFET_API if ((remote_repository_url is defined) and (remote_repository_url.JISKEFET_API is defined) and (remote_repository_url.JISKEFET_API | trim != '')) else 'https://github.com/SoftwareForScience/jiskefet-api.git'}}"
JISKEFET_UI: "{{ remote_repository_url.JISKEFET_UI if ((remote_repository_url is defined) and (remote_repository_url.JISKEFET_UI is defined) and (remote_repository_url.JISKEFET_UI | trim != '')) else 'https://github.com/SoftwareForScience/jiskefet-ui.git'}}"
Expand Down

0 comments on commit ccd4575

Please sign in to comment.