Clean up another lint error

This commit is contained in:
Chris Holcombe 2016-01-22 15:21:45 -08:00
parent 477cdc96fb
commit eaa365a180
2 changed files with 2 additions and 4 deletions

View File

@ -138,7 +138,7 @@ def handle_erasure_pool(request, service):
log(msg, level=ERROR)
return {'exit-code': 1, 'stderr': msg}
# TODO: Default to 6/3 erasure coding. I believe this requires min 9 osds
# TODO: Default to 3/2 erasure coding. I believe this requires min 5 osds
if not erasure_profile_exists(service=service, name=erasure_profile):
# TODO: Fail and tell them to create the profile or default
msg = "erasure-profile {} does not exist. Please create it with: " \

View File

@ -22,9 +22,7 @@ class CephBrokerTestCase(unittest.TestCase):
rc = ceph_broker.process_requests(req)
self.assertEqual(json.loads(rc), {
'exit-code': 1,
'stderr':
('Missing or invalid api version '
'(None)')})
'stderr': 'Missing or invalid api version (None)'})
@mock.patch('ceph_broker.log')
def test_process_requests_invalid_api_version(self, mock_log):