Skip to content

Commit

Permalink
lxd/storage: Prevent duplicate usedBy profile device entries
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <din.music@canonical.com>
  • Loading branch information
MusicDin committed Oct 11, 2023
1 parent e7114d6 commit 1d5f840
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lxd/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ func UsedBy(ctx context.Context, s *state.State, pool Pool, firstOnly bool, memb
if firstOnly {
return nil
}

break
}
}

Expand Down

0 comments on commit 1d5f840

Please sign in to comment.