This now shadows `name` argument which is passed to this function.

Maybe a better approach would be to use `name` argument  which is passed to the function (if available), otherwise fall back to retrieving a name from the tags (`name = name if name else tags.get('Name', volId)).