mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
fix boto_vpc unit test and error message
This commit is contained in:
parent
2a8ee17efb
commit
ebbb113f7a
@ -391,7 +391,7 @@ def subnet_exists(subnet_id=None, name=None, cidr=None, tags=None, zones=None,
|
||||
|
||||
if not any((subnet_id, name, cidr, tags, zones)):
|
||||
raise SaltInvocationError('At least on of the following must be '
|
||||
'specified: subnet id, cidr, name , tags '
|
||||
'specified: subnet id, cidr, name, tags, '
|
||||
'or zones.')
|
||||
|
||||
try:
|
||||
|
@ -681,7 +681,8 @@ class BotoVpcSubnetsTestCase(BotoVpcTestCaseBase):
|
||||
'''
|
||||
Tests checking subnet existence without any filters
|
||||
'''
|
||||
with self.assertRaisesRegexp(SaltInvocationError, 'At least on of the following must be specified: subnet id, name or tags.'):
|
||||
with self.assertRaisesRegexp(SaltInvocationError,
|
||||
'At least on of the following must be specified: subnet id, cidr, name, tags, or zones.'):
|
||||
boto_vpc.subnet_exists(**conn_parameters)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user