I had fixed a similar issue before but for some reason --check options fails to work again. When I debugged the code, I realized that the global variables don't go into the other sections of the code with the correct values. I wrote in the code previously that refactoring of esm_master to avoid the use of global variables would be idea for the future. This bugfix not only solves the issue but also refactors esm_master.
This bugfix solves the issue opened by @seb-wahl : https://github.com/esm-tools/esm_master/issues/50
I had fixed a similar issue before but for some reason
--check
options fails to work again. When I debugged the code, I realized that the global variables don't go into the other sections of the code with the correct values. I wrote in the code previously that refactoring ofesm_master
to avoid the use of global variables would be idea for the future. This bugfix not only solves the issue but also refactorsesm_master
.The bugfix passes the following tests:
esm_master get-foci-default -c
esm_master get-foci-default --check
esm_master get-foci-default -c --verbose
esm_master get-foci-default --check --verbose
esm_master get-foci-default -c --no-motd
esm_master get-foci-default -c --verbose --no-motd
esm_master get-foci-default --check --verbose --no-motd