This is an automated email from the ASF dual-hosted git repository.
houshengbo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 51c9c52 Check the file existence of application.conf.j2 (#3803)
51c9c52 is described below
commit 51c9c525c5782c6885e674353aabd0038973293b
Author: Vincent <[email protected]>
AuthorDate: Fri Jun 29 16:56:40 2018 -0400
Check the file existence of application.conf.j2 (#3803)
Since the initial openwhisk release does not package the folder tests, we
need to make sure application.conf.j2 exists in order to copy to the remote
server.
---
ansible/tasks/writeWhiskProperties.yml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/ansible/tasks/writeWhiskProperties.yml
b/ansible/tasks/writeWhiskProperties.yml
index 516306b..3951c14 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: