If _UnlockedLookupNetwork() fails raise error
authorHelga Velroyen <helgav@google.com>
Wed, 30 Jan 2013 16:35:10 +0000 (17:35 +0100)
committerHelga Velroyen <helgav@google.com>
Wed, 30 Jan 2013 17:26:46 +0000 (18:26 +0100)
commit1cce2c47da54574b7face60da45665af3e19795f
treee30e60f4f6bcd926b737c5cab30e5af85d2bfdf6
parent6bb939a2171bcfa554736260543c0bd7b5ae0e51
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...

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