Skip to content

Commit

Permalink
[manila] fix key error in manila offline volume sync
Browse files Browse the repository at this point in the history
Key should be 'volume' instead of 'name'.
  • Loading branch information
chuan137 committed May 30, 2022
1 parent 80fc6f5 commit 862ba3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/manila-share-sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def process_offline_volumes(self, offline_volume_list, dry_run=True):
for volname, vol in self.offline_volumes.items():
if volname not in offline_volumes:
self.manila_offline_volumes_gauge.remove(vol['share_id'], vol['status'],
vol['filer'], vol['vserver'], vol['name'])
vol['filer'], vol['vserver'], vol['volume'])

with self.offline_volumes_lock:
self.offline_volumes = update_records(self.offline_volumes, offline_volumes)
Expand Down

0 comments on commit 862ba3b

Please sign in to comment.