Reduce some more code duplication and split code
The Qlang module defines ResultStatus, but it was already defined in Ganeti/Luxi.hs; let's remove the duplicate definition from there since the proper place is in the newer module. Also, in order to ease testing, we split some confd functions into a separate module; this can be imported easily into QC for testing. Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
Showing
- Makefile.am 1 addition, 0 deletionsMakefile.am
- htools/Ganeti/Confd/Server.hs 1 addition, 34 deletionshtools/Ganeti/Confd/Server.hs
- htools/Ganeti/Confd/Utils.hs 77 additions, 0 deletionshtools/Ganeti/Confd/Utils.hs
- htools/Ganeti/HTools/Luxi.hs 2 additions, 2 deletionshtools/Ganeti/HTools/Luxi.hs
- htools/Ganeti/HTools/QC.hs 2 additions, 0 deletionshtools/Ganeti/HTools/QC.hs
- htools/Ganeti/Luxi.hs 0 additions, 20 deletionshtools/Ganeti/Luxi.hs
- htools/Ganeti/Qlang.hs 10 additions, 0 deletionshtools/Ganeti/Qlang.hs
Loading
Please register or sign in to comment