cleaned up a few naming inconsistencies.

This commit is contained in:
Winston Liu 2016-02-09 16:52:51 -08:00
parent 6952e57b4c
commit 248707069c
2 changed files with 3 additions and 3 deletions

View File

@ -228,7 +228,7 @@ def create_identity_pool(IdentityPoolName,
response = conn.create_identity_pool(**request_params)
response.pop('ResponseMetadata', None)
return {'created': True, 'identity-pool': response}
return {'created': True, 'identity_pool': response}
except ClientError as e:
return {'created': False, 'error': salt.utils.boto3.get_error(e)}
@ -357,7 +357,7 @@ def set_identity_pool_roles(IdentityPoolId, AuthenticatedRole=None, Unauthentica
conn.set_identity_pool_roles(IdentityPoolId=IdentityPoolId, Roles=Roles)
return {'set': True}
return {'set': True, 'roles': Roles}
except ClientError as e:
return {'set': False, 'error': salt.utils.boto3.get_error(e)}

View File

@ -150,7 +150,7 @@ class BotoCognitoIdentityTestCaseMixin(object):
' or equal to version {0}'
.format(required_boto3_version))
@skipIf(NO_MOCK, NO_MOCK_REASON)
class BotoCognitoIdentityFunctionTestCase(BotoCognitoIdentityTestCaseBase, BotoCognitoIdentityTestCaseMixin):
class BotoCognitoIdentityTestCase(BotoCognitoIdentityTestCaseBase, BotoCognitoIdentityTestCaseMixin):
'''
TestCase for salt.modules.boto_cognitoidentity module
'''