If _UnlockedLookupNetwork() fails raise error
authorHelga Velroyen <helgav@google.com>
Wed, 30 Jan 2013 16:35:10 +0000 (17:35 +0100)
committerGuido Trotter <ultrotter@google.com>
Tue, 12 Feb 2013 13:39:53 +0000 (14:39 +0100)
commit1b68f268335999a5df4bf74a25a395aba9d603e7
tree2b71913386e817272f5b5a4f2aa3bebf66daebf3
parent37a978e753a01f76b9b2efde4cdb9ebd2acf37b7
If _UnlockedLookupNetwork() fails raise error

Make _UnlockedLookupNetwork() raise OpPrereqError (instead of returning
None) in case it does not find the requested network. Remove useless and
duplicate code such as:

if net_uuid is None:
  raise...

This is a cherry-pick of commit 1cce2c4.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Reviewed-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
lib/cmdlib.py
lib/config.py