Skip to content

Commit

Permalink
lxd/patches: Satisfy the linter
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
  • Loading branch information
roosterfish committed Feb 2, 2024
1 parent 7d7f595 commit f6f2ee5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lxd/patches.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ func patchClusteringServerCertTrust(name string, d *Daemon) error {

for _, c := range dbCerts {
if c.Type == certificate.TypeServer {
trustedServerCerts[c.Name] = &c
cCopy := c
trustedServerCerts[c.Name] = &cCopy
}
}

Expand Down Expand Up @@ -807,10 +808,10 @@ func patchStorageRenameCustomISOBlockVolumes(name string, d *Daemon) error {
if err != nil {
// If we're not clustered, we're the leader.
if errors.Is(err, cluster.ErrNodeIsNotClustered) {
isLeader = true
} else {
return err
}

isLeader = true
} else if localConfig.ClusterAddress() == leaderAddress {
isLeader = true
}
Expand Down

0 comments on commit f6f2ee5

Please sign in to comment.