def _update_quota_and_def_type(self, project_id, quota): self.api.quota_set(project_id, quota) type_updates = { '%s_%s' % (key, self._vol_type_name): val for key, val in quota.items() if key != 'per_volume_gigabytes' } return self.api.quota_set(project_id, type_updates)
def _update_quota_and_def_type(self, project_id, quota): self.api.quota_set(project_id, quota) type_updates = {'%s_%s' % (key, self._vol_type_name): val for key, val in quota.items() if key != 'per_volume_gigabytes'} return self.api.quota_set(project_id, type_updates)