Remove unsafePerformIO usage
We need to change a few things, most importantly CLI options defaults, but otherwise we already used the path to files from functions which were already in the I/O monad, so we don't have to change much of the code flow. Additionally, Path.hs now has an explicit export list, to stop accidental leakage of symbols. Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
Showing
- htest/Test/Ganeti/HTools/CLI.hs 1 addition, 1 deletionhtest/Test/Ganeti/HTools/CLI.hs
- htools/Ganeti/Confd/Server.hs 4 additions, 3 deletionshtools/Ganeti/Confd/Server.hs
- htools/Ganeti/Confd/Utils.hs 1 addition, 1 deletionhtools/Ganeti/Confd/Utils.hs
- htools/Ganeti/Daemon.hs 7 additions, 6 deletionshtools/Ganeti/Daemon.hs
- htools/Ganeti/HTools/CLI.hs 9 additions, 4 deletionshtools/Ganeti/HTools/CLI.hs
- htools/Ganeti/HTools/Program/Hbal.hs 3 additions, 2 deletionshtools/Ganeti/HTools/Program/Hbal.hs
- htools/Ganeti/HTools/Program/Hcheck.hs 3 additions, 2 deletionshtools/Ganeti/HTools/Program/Hcheck.hs
- htools/Ganeti/HTools/Program/Hinfo.hs 3 additions, 2 deletionshtools/Ganeti/HTools/Program/Hinfo.hs
- htools/Ganeti/HTools/Program/Hscan.hs 5 additions, 3 deletionshtools/Ganeti/HTools/Program/Hscan.hs
- htools/Ganeti/HTools/Program/Hspace.hs 3 additions, 2 deletionshtools/Ganeti/HTools/Program/Hspace.hs
- htools/Ganeti/Path.hs 51 additions, 32 deletionshtools/Ganeti/Path.hs
- htools/Ganeti/Query/Server.hs 2 additions, 1 deletionhtools/Ganeti/Query/Server.hs
- htools/Ganeti/Rpc.hs 4 additions, 3 deletionshtools/Ganeti/Rpc.hs
- htools/Ganeti/Runtime.hs 8 additions, 4 deletionshtools/Ganeti/Runtime.hs
- htools/Ganeti/Ssconf.hs 2 additions, 1 deletionhtools/Ganeti/Ssconf.hs
Loading
Please register or sign in to comment