1. 07 Nov, 2014 1 commit
    • Stavros Sachtouris's avatar
      Check server status before changing it · 19522a57
      Stavros Sachtouris authored
      Fixes grnet/kamaki#57
      
      This fix affects the CLI commands "server_start", "server_reboot"
      and "server_shutdown" which are specified in "kamaki.cli.cmds.cyclades".
      These are the operations that modify the status of a server.
      
      The problem was caused when the target status was the same as the current.
      In this case, the request for status modification would fail with a 400
      error code response. At this point, kamaki couldn't have adequate information
      to correctly evaluate the error.
      
      This problem is solved by checking the current status before attempting to
      modify it.  Also, the server ID is validated in advance, instead of waiting
      for a 400 server error.
      19522a57
  2. 02 Oct, 2014 1 commit
    • Stavros Sachtouris's avatar
      Escape characters in CLI output methods · 5852db11
      Stavros Sachtouris authored
      Closes grnet/kamaki#32
      
      Kamaki CLI commands use some generic output methods to handle outputs.
      
      Generic output methods that escape control characters:
      - in kamaki.cli.utils: print_items, print_dict, print_list
      - in kamaki.cli.cmds: error
      
      Generic output methods that don't escape control characters:
      - in kamaki.cli.cmds: writeln, write
      
      The methods that don't escape control characters are used when the
      standard methods are not sufficient. For example, in "kamaki.cli.pithos"
      the "PithosAccount.print_objects" method adds decorative escape characters
      (i.e., bold, alignment), but has to escape the parts object and container
      names. To achieve this, escaping is handled in the method, and the output
      is printed with the "write" and "writeln" methods mentioned earlier.
      
      An encoding issue with kamaki.cli.errors.CLIError and the Exceptions extending it,
      is fixed. It is now ensured that the error message will always be in unicode.
      
      Also, fix flake8 errors on files affected by the above changes
      5852db11
  3. 01 Oct, 2014 1 commit
  4. 25 Aug, 2014 1 commit
  5. 29 Jul, 2014 4 commits
  6. 24 Jul, 2014 1 commit
  7. 17 Jul, 2014 1 commit
  8. 23 Jun, 2014 1 commit
  9. 16 Jun, 2014 1 commit
  10. 13 Jun, 2014 1 commit
  11. 05 Jun, 2014 1 commit
  12. 02 Jun, 2014 1 commit
  13. 21 May, 2014 14 commits
  14. 31 Mar, 2014 1 commit
  15. 17 Mar, 2014 3 commits
  16. 05 Mar, 2014 1 commit
  17. 17 Feb, 2014 2 commits
  18. 12 Feb, 2014 1 commit
  19. 11 Feb, 2014 2 commits
  20. 10 Feb, 2014 1 commit