Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
run should not export conf var when there is no configuration file
Browse files Browse the repository at this point in the history
SOL_FLOW_MODULE_RESOLVER_CONFFILE should be exported empty otherwise, Soletta
will try to load empty conf files and produce the following unwanted warnings:

WRN: ./src/shared/sol-util-file.c:181 sol_util_load_file_fd_raw() r (-1) < 0
WRN: ./src/shared/sol-util-file.c:209 sol_util_load_file_fd_buffer() r (-1) < 0
WRN: ./src/shared/sol-util-file.c:181 sol_util_load_file_fd_raw() r (-1) < 0
WRN: ./src/shared/sol-util-file.c:209 sol_util_load_file_fd_buffer() r (-1) < 0
WRN: ./src/shared/sol-util-file.c:181 sol_util_load_file_fd_raw() r (-1) < 0
WRN: ./src/shared/sol-util-file.c:209 sol_util_load_file_fd_buffer() r (-1) < 0

Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
  • Loading branch information
Bruno Bottazzini committed May 11, 2016
1 parent 9511cc5 commit e8af7c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@
'SOL_FLOW_MODULE_RESOLVER_CONFFILE="' + conf + '"');
} else {
err = writeFile(env_file(current_user(req)),
'FBP_FILE="' + fbp_path + '"\n' +
'SOL_FLOW_MODULE_RESOLVER_CONFFILE=""');
'FBP_FILE="' + fbp_path + '"\n');
}
if (!err) {
getConfigureFile(current_user(req), conf, function (error) {
Expand Down

0 comments on commit e8af7c2

Please sign in to comment.