Skip to content
Snippets Groups Projects
  1. Nov 20, 2012
  2. Nov 15, 2012
  3. Nov 05, 2012
    • Dato Simó's avatar
      cli.py: use None as name for tag operations on the cluster · bcd35e09
      Dato Simó authored
      
      This change is mostly cosmetic. Previously, the literal "cluster" was
      used for the 'name' field of tag operations on the cluster (as opposed
      to a node or an instance). Since this field has a type of TMaybeString
      specifically for the case of the cluster, it seems more correct to use
      None, rather than an arbitrary string (that is not used by the callee).
      
      Additionally: note in opcodes.py that groups also expect a name; the
      previous comment only referred to nodes and instances.
      
      Signed-off-by: default avatarDato Simó <dato@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      bcd35e09
  4. Oct 25, 2012
  5. Oct 17, 2012
  6. Oct 11, 2012
  7. Oct 02, 2012
    • Michael Hanselmann's avatar
      cli: Exit with status 0 for --help · d971402f
      Michael Hanselmann authored
      
      This patch is somewhat longer than was anticipated. Before, commands like
      “gnt-instance --help” would exit with the status code 1 (failure). With
      this patch, those commands exits with 0 (success) while unknown commands
      still print the usage screen and exit with status 1.
      
      To achieve this goal without too much ugly code some refactoring on
      cli._ParseArgs was necessary. Printing the version and usage screen was
      separated. At the same time this allows for some unit testing.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarBernardo Dal Seno <bdalseno@google.com>
      d971402f
  8. Sep 28, 2012
  9. Sep 18, 2012
  10. Aug 28, 2012
  11. Aug 23, 2012
    • Iustin Pop's avatar
      Bump pep8 version to 1.2 · 5ae4945a
      Iustin Pop authored
      
      Debian Wheezy will ship with this version, and it has many improved checks compared to 0.6, so let's:
      
      - bump version in the docs
      - silence some new checks that are wrong due to our indent=2 instead of 4
      - fix lots of errors in the code where the indentation was wrong by 1
        or 2 spaces
      - fix a few cases of == True, False, None and replace with 'is'
      - re-indent some cases where the code is OK, but pep8 complains
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      5ae4945a
  12. Aug 07, 2012
    • Iustin Pop's avatar
      Add infrastructure for building numeric namefield filters · 6f287cf3
      Iustin Pop authored
      
      Currently, all the CLI helpers in qlang.py and cli.py assume that all
      namefields are string, which leads to various breakage in case the're
      actually not.
      
      To improve the flexibility of the helpers, we add a bit of
      infrastructure for accepting so called "numeric" namefields; this is a
      bit of a hack, as a proper fix would actually add QFT_* support to the
      helpers, and case for example the regex/globbing on QFT_TEXT, etc. But
      that's left for (eventual) later improvement.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      6f287cf3
  13. Aug 02, 2012
    • Iustin Pop's avatar
      Fix uses of OpPrereqError without code info · 2cfbc784
      Iustin Pop authored
      
      A while back, we did cleanup the code and ensured (manually) that use
      of OpPrereqError includes an errors.ECODE_* field as second
      argument. Since we cannot automate the check for this, it turns out
      that more and more such usage has crept over the years, including in
      the master code (the use on the CLI side is not as important).
      
      Note that this also uncovered a few errors in ovf.py where the errors
      messages were wrongly constructed.
      
      Still looking for a way to automate this check…
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      2cfbc784
  14. Jul 05, 2012
  15. May 29, 2012
  16. May 22, 2012
  17. May 15, 2012
  18. May 11, 2012
  19. Apr 26, 2012
  20. Apr 13, 2012
  21. Apr 12, 2012
  22. Mar 30, 2012
  23. Feb 17, 2012
  24. Jan 26, 2012
  25. Jan 24, 2012
  26. Jan 23, 2012
  27. Jan 20, 2012
  28. Jan 19, 2012
  29. Jan 18, 2012
  30. Jan 13, 2012
Loading