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:
parent
d3220343f1
commit
7c5b230316
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user