]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
[RM-12171] Make pkg --install and --remove mutually exclusive 321/head
authorTravis Rhoden <trhoden@redhat.com>
Thu, 9 Jul 2015 23:33:32 +0000 (16:33 -0700)
committerTravis Rhoden <trhoden@redhat.com>
Thu, 9 Jul 2015 23:33:32 +0000 (16:33 -0700)
commitd7d366613a5049b87d71f39155f1b0daf64ce24e
tree1021058651350bcd1dd276558e388a157b30dc54
parent548bd88e88917307bb82a81cc3d39e3b04d31a18
[RM-12171] Make pkg --install and --remove mutually exclusive

The code could not handle both being present, so make sure that we
don't allow that on the CLI.

Add unit tests for pkg.

Remove nargs=?. Using '?' doesn't make any sense unless a default
or const flag is also provided, which they aren't.  We want to make
sure there is one string provided, which is the default behavior.

Fixes: #12171
Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/pkg.py
ceph_deploy/tests/parser/test_pkg.py [new file with mode: 0644]