placement/placement/cmd
Lee Yarwood ce7b05a1f9 manage: Do not use set_defaults on parent parsers with py2
Doing so with cpython < 2.7.9 results in the following bug being hit:

argparse set_defaults on subcommands should override top level set_defaults
https://bugs.python.org/issue9351

As CentOS 7 continues to ship with cpython 2.7.5 this change simply
removes the parent parser call to set_defaults for py2 while leaving the
associated tests unchanged. This should ensure that the actual behaviour
of placement-manage is unchanged while allowing these tests to pass once
again on CentOS.

Change-Id: I87989ced31b1d39e30c992b34fe2ae6db06f7883
Closes-Bug: #1804420
2018-11-22 14:55:53 +00:00
..
__init__.py Add a placement-manage CLI 2018-11-20 15:00:32 +00:00
manage.py manage: Do not use set_defaults on parent parsers with py2 2018-11-22 14:55:53 +00:00
status.py Add placement-status upgrade check command 2018-11-20 13:53:07 -05:00