Added a category declaration for CiscoNexus (I put it in the Network category)

and improved the exception.
This commit is contained in:
Ewan Mellor 2012-05-23 12:03:48 -07:00
parent 8a5211f62c
commit 93ce302db3
1 changed files with 3 additions and 1 deletions

View File

@ -82,6 +82,7 @@ known_categories = {
'Zone': 'Zone',
'NetworkOffering': 'Network Offering',
'Network': 'Network',
'CiscoNexus': 'Network',
'Vpn': 'VPN',
'Limit': 'Limit',
'ResourceCount': 'Limit',
@ -124,7 +125,8 @@ def choose_category(fn):
for k, v in known_categories.iteritems():
if k in fn:
return v
raise Exception(fn)
raise Exception('Need to add a category for %s to %s:known_categories' %
(fn, __file__))
for f in sys.argv: