Skip to content

Commit

Permalink
state: Add Authorizer to state
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Hipp <[email protected]>
  • Loading branch information
monstermunchkin committed Aug 1, 2023
1 parent 84c01f0 commit 0fa4955
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lxd/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ func (d *Daemon) State() *state.State {
LocalConfig: localConfig,
ServerName: d.serverName,
StartTime: d.startTime,
Authorizer: d.authorizer,
}
}

Expand Down
4 changes: 4 additions & 0 deletions lxd/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"net/url"
"time"

"github.com/canonical/lxd/lxd/auth"
"github.com/canonical/lxd/lxd/bgp"
clusterConfig "github.com/canonical/lxd/lxd/cluster/config"
"github.com/canonical/lxd/lxd/db"
Expand Down Expand Up @@ -77,4 +78,7 @@ type State struct {

// Local server start time.
StartTime time.Time

// Authorizer.
Authorizer auth.Authorizer
}

0 comments on commit 0fa4955

Please sign in to comment.