diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2017-02-28 10:27:02 -0600 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2017-03-20 16:55:48 -0500 |
| commit | 82a86d2d5857148eef96332761e4a88321f035fa (patch) | |
| tree | c6c47fefcb610daf77af5d6a73a3f46024225c63 /doc/source/command-objects | |
| parent | 3e621c9a9c730e758bd4f8c73d29c00f3c622f5b (diff) | |
| download | python-openstackclient-82a86d2d5857148eef96332761e4a88321f035fa.tar.gz | |
Simplify logic around option lists in port set
Use a common pattern to handle option pairs --XYZ and --no-XYZ for managing
lists of attributes. This pattern looks at the presence of the option
in parsed_args first and branches as necessary.
Some specific steps are included for the SDK Network resources to reliably
set the 'dirty' flag for changed attributes via one or both of the following:
* iterate over lists of original resource attributes to force the creation
of a new list object
* use [].extend() rather than += to add to the existing list (substitute
{}.update() for dicts)
Change-Id: I0c3f9a52ffe1ae2b5b230cb13d6376dd9131aaf9
Diffstat (limited to 'doc/source/command-objects')
0 files changed, 0 insertions, 0 deletions
