Skip to content
Snippets Groups Projects
  1. Nov 03, 2009
  2. Aug 05, 2009
    • Guido Trotter's avatar
      ConfigObject.ToDict() only export non-None values · 4c14965f
      Guido Trotter authored
      
      The method is changed to a normal loop, to avoid calling getattr()
      twice. Also __getstate__ is changed to just use ToDict() by default.
      
      This should also make __getstate__ work for objects which have to
      override the ToDict function because they contain other objects.
      
      __setstate__ is probably still broken in this case, but so it was
      before, and it's not used inside our code, so I'll pretend not to have
      noticed, as there is no "nice" way to fix it, without overriding it all
      over the place :(
      
      Some unittests are added as a bonus, to make sure we behave well.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      4c14965f
  3. Jan 20, 2009
    • Iustin Pop's avatar
      Unify some unittest functions · 51596eb2
      Iustin Pop authored
      This patch adds unified temporary file handling to the
      testutils.GanetiTestCase class, which adds easy creation and automated
      cleanup of temporary files.
      
      The patch allows a simpler handling in a couple of test cases but
      requires all child classes to call the parent setUp and tearDown
      methods.
      
      Reviewed-by: ultrotter
      51596eb2
  4. Oct 01, 2008
  5. Mar 18, 2008
    • Michael Hanselmann's avatar
      Add function to write cluster SSH key to known_hosts file · 75a5f456
      Michael Hanselmann authored
      The whole Ganeti cluster has a single SSH key. Its fingerprint is
      written to Ganeti's known_hosts file, together with an alias. This
      allows us to always use that alias instead of the real hostname,
      making management of the known_hosts file much easier.
      
      This patch does not handle an upgrade from an earlier version.
      
      Reviewed-by: ultrotter
      75a5f456
  6. Feb 26, 2008
  7. Feb 14, 2008
  8. Oct 12, 2007
  9. Sep 13, 2007
  10. Jul 16, 2007
Loading