You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/06/29 20:56:42 UTC
[GitHub] houshengbo closed pull request #3803: Check the file existence of
application.conf.j2
houshengbo closed pull request #3803: Check the file existence of application.conf.j2
URL: https://github.com/apache/incubator-openwhisk/pull/3803
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/ansible/tasks/writeWhiskProperties.yml b/ansible/tasks/writeWhiskProperties.yml
index 516306b48b..3951c14b0a 100644
--- a/ansible/tasks/writeWhiskProperties.yml
+++ b/ansible/tasks/writeWhiskProperties.yml
@@ -9,10 +9,17 @@
src: whisk.properties.j2
dest: "{{ openwhisk_home }}/whisk.properties"
+- name: check if application.conf.j2 exists
+ tags: application
+ stat: path="{{ openwhisk_home }}/tests/src/test/resources/application.conf.j2"
+ register: application
+
- name: write test's application conf overrides
+ tags: application
template:
src: "{{ openwhisk_home }}/tests/src/test/resources/application.conf.j2"
dest: "{{ openwhisk_home }}/tests/src/test/resources/application.conf"
+ when: application.stat.exists
- name: write whisk.conf template for wskadmin to openwhisk_home
template:
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services