]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind: avoid spurious "too many values to unpack"
authorJohn Spray <john.spray@redhat.com>
Wed, 3 Jun 2015 09:40:32 +0000 (10:40 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 3 Jun 2015 09:40:32 +0000 (10:40 +0100)
commit232ec887be3af353892ac757ae29be9617f238e4
tree0c82b0b0dad13e2bc3012ae3eae9f724e6f325e9
parente8e8b12c37d01bb183372f2fc85ec8b3d0d51ebe
pybind: avoid spurious "too many values to unpack"

When a user passes e.g. an IP address where
they should have passed a <service>.<id>,
the dots were causing us to raise "too many
values to unpack" exceptions instead of
proper complaints about it not being
a valid service name.

Fixes: #10950
Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/ceph_argparse.py