diff --git a/manifests/init.pp b/manifests/init.pp index afc7de3d..3092c4e6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -621,9 +621,10 @@ class horizon( validate_legacy(Stdlib::Absolutepath, 'validate_absolute_path', $root_path) if $manage_memcache_package and $cache_backend =~ /MemcachedCache/ { - ensure_resources('package', { 'python-memcache' => - { name => $::horizon::params::memcache_package, - tag => ['openstack', 'horizon-package']}}) + ensure_packages('python-memcache', { + name => $::horizon::params::memcache_package, + tag => ['openstack'], + }) } package { 'horizon': diff --git a/spec/classes/horizon_init_spec.rb b/spec/classes/horizon_init_spec.rb index 43ae18c8..099cee1b 100644 --- a/spec/classes/horizon_init_spec.rb +++ b/spec/classes/horizon_init_spec.rb @@ -296,7 +296,7 @@ describe 'horizon' do it { is_expected.to contain_package('python-memcache').with( - :tag => ['openstack', 'horizon-package'], + :tag => ['openstack'], :name => platforms_params[:memcache_package], ) }