Repository navigation
Conversation
74da0ec to
703d3ea
Compare
703d3ea to
91e6361
Compare
91e6361 to
8edfe60
Compare
8edfe60 to
9c5ecd0
Compare
9c5ecd0 to
ecb32ff
Compare
ecb32ff to
afac66f
Compare
afac66f to
f1b373f
Compare
c353351 to
31314b7
Compare
tmakatos
left a comment
There was a problem hiding this comment.
Can you explain what problem the refactor solves?
|
Sure, there's two separate bugs: one is that it would apply the prefix mechanism twice, and secondly I consolidated the three config loading mechanisms into a single one that falls back onto a default config if it's not found. addressing this todo: |
82c32e8 to
e3d51c4
Compare
e3d51c4 to
d8ed3ca
Compare
d8ed3ca to
0980e2a
Compare
0980e2a to
9240b09
Compare
9240b09 to
9648873
Compare
Shouldn't this be three separate commits then? |
|
I've split it out since I wrote that since I realised the same thing 😄, this commit is just the "use default if ENOENT" applied globally like the fixme suggests. |
9648873 to
33ad7b1
Compare
33ad7b1 to
6db0815
Compare
Instead of having three separate implementations of 'try to load, use default if ENOENT', introduce a canonical config loading function. Signed-off-by: Leonardo Forchini <leonardo.forchini@nutanix.com>
6db0815 to
ff2cb26
Compare
Fixed a bug where the
util::Pathprefix was appended twice in somecases, and also consolidated config loading into a single function.
It attempts to read the config file and falls back the a default
implementation if not found.
Signed-off-by: Leonardo Forchini leonardo.forchini@nutanix.com
Stack created with GitHub Stacks CLI • Give Feedback 💬