summaryrefslogtreecommitdiff
path: root/openstackclient/compute
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2017-02-28 10:27:02 -0600
committerDean Troyer <dtroyer@gmail.com>2017-03-20 16:55:48 -0500
commit82a86d2d5857148eef96332761e4a88321f035fa (patch)
treec6c47fefcb610daf77af5d6a73a3f46024225c63 /openstackclient/compute
parent3e621c9a9c730e758bd4f8c73d29c00f3c622f5b (diff)
downloadpython-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 'openstackclient/compute')
0 files changed, 0 insertions, 0 deletions