Skip to content

Commit 899b98e

Browse files
authored
Update docker_wrapper.cpp
Fixed bug: the configuration file was parsed after image name was populated by parse_config_file(); so every custom image name specified in the configuration file was ignored.
1 parent b443506 commit 899b98e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/docker_wrapper/docker_wrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ int main(int argc, char** argv) {
500500
options.check_heartbeat = true;
501501
options.handle_process_control = true;
502502
boinc_init_options(&options);
503-
503+
retval = parse_config_file();
504504
if (boinc_is_standalone()) {
505505
verbose = true;
506506
strcpy(image_name, "boinc");
@@ -512,7 +512,7 @@ int main(int argc, char** argv) {
512512
get_image_name();
513513
get_container_name();
514514
}
515-
retval = parse_config_file();
515+
516516
if (retval) {
517517
fprintf(stderr, "can't parse config file\n");
518518
exit(1);

0 commit comments

Comments
 (0)