[lxc-devel] [lxc/lxc] a53973: python3: Don't fail in list_containers on ValueErr...

GitHub noreply at github.com
Thu Jan 16 20:45:10 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: a539732721c45939ab79c01abd19298e4e5c74ca
      https://github.com/lxc/lxc/commit/a539732721c45939ab79c01abd19298e4e5c74ca
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-01-16 (Thu, 16 Jan 2014)

  Changed paths:
    M src/python-lxc/lxc/__init__.py

  Log Message:
  -----------
  python3: Don't fail in list_containers on ValueError

ValueError typically means that the user doesn't have permissions to
access the directory. Raising an exception there isn't consistent with
other error behaviour of list_containers which simple returns an empty
tuple.

So simply catch the exception and ignore it. An error message is already
printed by LXC itself anyway.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>


  Commit: c5afb6e455d9ec00af9f3399836152eaf9d0a4f5
      https://github.com/lxc/lxc/commit/c5afb6e455d9ec00af9f3399836152eaf9d0a4f5
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-01-16 (Thu, 16 Jan 2014)

  Changed paths:
    M doc/lxc-ls.sgml.in
    M src/lxc/lxc-ls

  Log Message:
  -----------
  lxc-ls: Add -f and -F as aliases

Alias -f to --fancy and -F to --fancy-format.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/378a57294877...c5afb6e455d9


More information about the lxc-devel mailing list