Fix how libvirt package resource is looked up
The package name is not always 'libvirt' and the current logic to find
the package resource using 'name' doesn't work properly. This change
ensures the resource is found by title, which is always 'libvirt'.
Change-Id: Ic26fd0ec9c745077abc82befe15fe0d477e34ce2
(cherry picked from commit 4af91bddca
)
This commit is contained in:
parent
7ff77f8225
commit
bdd7c0c95b
|
@ -88,7 +88,7 @@ class nova::compute::libvirt::services (
|
|||
enable => true,
|
||||
name => $virtlock_service_name,
|
||||
}
|
||||
Package<| name == 'libvirt' |> -> Service['virtlockd']
|
||||
Package<| title == 'libvirt' |> -> Service['virtlockd']
|
||||
}
|
||||
|
||||
if $virtlog_service_name {
|
||||
|
@ -97,7 +97,7 @@ class nova::compute::libvirt::services (
|
|||
enable => true,
|
||||
name => $virtlog_service_name,
|
||||
}
|
||||
Package<| name == 'libvirt' |> -> Service['virtlogd']
|
||||
Package<| title == 'libvirt' |> -> Service['virtlogd']
|
||||
}
|
||||
if $libvirt_service_name and $virtlog_service_name {
|
||||
Service['virtlogd'] -> Service['libvirt']
|
||||
|
|
Loading…
Reference in New Issue