Skip to content

Commit

Permalink
lxd/storage/drivers: Use projectID variable
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Aug 30, 2024
1 parent afa3cad commit 8adc539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/storage/drivers/driver_dir_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (d *dir) setQuota(path string, volID int64, sizeBytes int64) error {
}

// Clear and create new project if desired project ID is different.
if currentProjectID != d.quotaProjectID(volID) {
if currentProjectID != projectID {
err = quota.SetProject(path, projectID)
if err != nil {
return fmt.Errorf("Failed setting project: %w", err)
Expand Down

0 comments on commit 8adc539

Please sign in to comment.