summaryrefslogtreecommitdiffstats
path: root/bin/stack
diff options
context:
space:
mode:
authorBrent Eagles <beagles@redhat.com>2013-02-07 14:38:52 -0330
committerBrent Eagles <beagles@redhat.com>2013-02-18 17:09:35 -0330
commit5cb12a228468924c506d2e552c1748f48528f6d8 (patch)
tree7e25f1ae6cd5a1527278d5d67cc1c1d4dd17ada8 /bin/stack
parent104efb3b8b64f8dbfaf86157c29b9609ad71b91c (diff)
downloadnova-5cb12a228468924c506d2e552c1748f48528f6d8.tar.gz
nova-5cb12a228468924c506d2e552c1748f48528f6d8.tar.xz
nova-5cb12a228468924c506d2e552c1748f48528f6d8.zip
Prevent the unexpected with nova-manage network modify.
"nova-manage network modify" can misinterpret arguments if the user provides values where they are unexpected, specifically the --disassociate-project and --disassociate-host options. If the user provides a project or hostname value for either of these values, it will be interpreted as a positional argument and modify handler may behave as if other options were provided (e.g. project or host). This change handles the presence of a project or host option along with --disassociate-project or --disassociate-host as an error, printing a message and exiting immediately with an error code. While there are other approaches (e.g. perform the disassociate modifications while ignoring the others), preventing unexpected or inconsistent results by doing nothing seems safest. Change-Id: Iff7817fe3ed19a4ff330b4029f9c558d3b405e9b
Diffstat (limited to 'bin/stack')
0 files changed, 0 insertions, 0 deletions