Am I right?
--- ./a/solidfire.py 2017-10-19 17:07:47.290721165 +0900 +++ ./b/solidfire.py 2017-10-19 17:09:26.114723811 +0900 @@ -1000,8 +1000,8 @@ class SolidFireDriver(san.SanISCSIDriver # if it exists and return whichever one has count # available. for acc in accounts: - if self._get_volumes_for_account( - acc['accountID']) > self.max_volumes_per_account: + vols = self._get_volumes_for_account(acc['accountID']) + if len(vols) < self.max_volumes_per_account: return acc if len(accounts) == 1: sfaccount = self._create_sfaccount(accounts[0]['name'] + '_')
Am I right?
--- ./a/solidfire.py 2017-10-19 17:07:47.290721165 +0900 (san.SanISCSIDr iver volumes_ for_account( volumes_ per_account: volumes_ for_account( acc['accountID' ]) volumes_ per_account:
return acc
sfaccount = self._create_ sfaccount( accounts[ 0]['name' ] + '_')
+++ ./b/solidfire.py 2017-10-19 17:09:26.114723811 +0900
@@ -1000,8 +1000,8 @@ class SolidFireDriver
# if it exists and return whichever one has count
# available.
for acc in accounts:
- if self._get_
- acc['accountID']) > self.max_
+ vols = self._get_
+ if len(vols) < self.max_
if len(accounts) == 1: