Skip to content

Commit a01b62e

Browse files
authored
Merge pull request #53 from cobaltcore-dev/fix-libvirt-version
fix: obtain libvirtversion instead of hypervisor version
2 parents 891c7a8 + fae32b6 commit a01b62e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/libvirt/libvirt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SPDX-FileCopyrightText: Copyright 2024 SAP SE or an SAP affiliate company and cobaltcore-dev contributors
33
SPDX-License-Identifier: Apache-2.0
44
5-
Licensed under the Apache License, LibVirtVersion 2.0 (the "License");
5+
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
77
You may obtain a copy of the License at
88
@@ -105,7 +105,7 @@ func (l *LibVirt) Connect() error {
105105
}
106106

107107
// Update the version
108-
if version, err := l.virt.ConnectGetVersion(); err != nil {
108+
if version, err := l.virt.ConnectGetLibVersion(); err != nil {
109109
logger.Log.Error(err, "unable to fetch libvirt version")
110110
} else {
111111
major, minor, release := version/1000000, (version/1000)%1000, version%1000

0 commit comments

Comments
 (0)