mirror of https://github.com/apache/cloudstack.git
Added a category declaration for CiscoNexus (I put it in the Network category)
and improved the exception.
This commit is contained in:
parent
8a5211f62c
commit
93ce302db3
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue