Skip to content

Commit

Permalink
Updating the call to System.Info function for backend and cli
Browse files Browse the repository at this point in the history
Signed-off-by: Luc Dandoy <[email protected]>
  • Loading branch information
agm650 committed Jan 22, 2023
1 parent aa0e3fe commit 7afc62f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ func getDefaultBackendID() string {

// getSystemInfo returns the system info of the backend
func getSystemInfo() corev2.System {
info, err := system.Info()
info, err := system.Info(true)
if err != nil {
logger.WithError(err).Error("error getting system info")
}
Expand Down
2 changes: 1 addition & 1 deletion backend/resource/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (br *BackendResource) GenerateBackendEvent(component string, status uint32,
}

func getEntity() (*corev2.Entity, error) {
systemInfo, err := system.Info()
systemInfo, err := system.Info(true)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion cli/cmdmanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (p *CommandPlugin) SetObjectMeta(meta corev2.ObjectMeta) {

func getEntity() (*corev2.Entity, error) {
// create an entity for using with command asset filtering
systemInfo, err := system.Info()
systemInfo, err := system.Info(true)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 7afc62f

Please sign in to comment.