diff options
author | Brent Eagles <beagles@redhat.com> | 2013-02-07 14:38:52 -0330 |
---|---|---|
committer | Brent Eagles <beagles@redhat.com> | 2013-02-18 17:09:35 -0330 |
commit | 5cb12a228468924c506d2e552c1748f48528f6d8 (patch) | |
tree | 7e25f1ae6cd5a1527278d5d67cc1c1d4dd17ada8 /nova/exception.py | |
parent | 104efb3b8b64f8dbfaf86157c29b9609ad71b91c (diff) | |
download | nova-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 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions