Simplify redundant resource dependency

We don't have to define both "require" and "subscribe" and just having
subscribe is enough.

Change-Id: I1a19c54ba2e53a5d5adc30fc025a08693e2cf566
This commit is contained in:
Takashi Kajinami 2024-04-13 14:15:56 +09:00
parent d3220343f1
commit 7c5b230316
2 changed files with 2 additions and 3 deletions

View File

@ -645,10 +645,9 @@ class tempest(
command => "tempest init ${tempest_workspace}",
path => ['/bin', '/usr/bin'],
refreshonly => true,
require => Package['tempest'],
subscribe => Package['tempest'],
}
Package<| tag == 'tempest-package' |> -> Exec['tempest-workspace']
Package['tempest'] ~> Exec['tempest-workspace']
Exec['tempest-workspace'] -> Tempest_config<||>
$tempest_conf = "${tempest_workspace}/etc/tempest.conf"

View File

@ -432,7 +432,7 @@ describe 'tempest' do
:command => 'tempest init /var/lib/tempest',
:path => ['/bin', '/usr/bin'],
:refreshonly => true,
:require => 'Package[tempest]'
:subscribe => 'Package[tempest]'
)
end
end