Merge "Python 3 incompatible expression fix"
This commit is contained in:
commit
113fa9a005
|
@ -124,8 +124,8 @@ class BackupManager(manager.SchedulerDependentManager):
|
|||
host)
|
||||
|
||||
if 'default' not in self.volume_managers:
|
||||
# For multi-backend we just pick the top of the list.
|
||||
return self.volume_managers.keys()[0]
|
||||
# For multi-backend we just pick "first" from volume managers dict
|
||||
return next(iter(self.volume_managers))
|
||||
|
||||
return 'default'
|
||||
|
||||
|
|
Loading…
Reference in New Issue