Merge "Stop hard-coding config file for db sync"

This commit is contained in:
Zuul 2024-03-08 13:37:14 +00:00 committed by Gerrit Code Review
commit cf202a64f5
2 changed files with 3 additions and 3 deletions

View File

@ -6,10 +6,10 @@
# [*extra_params*] # [*extra_params*]
# (optional) String of extra command line parameters to append # (optional) String of extra command line parameters to append
# to the cloudkitty-storage-init command. # to the cloudkitty-storage-init command.
# Defaults to '--config-file /etc/cloudkitty/cloudkitty.conf' # Defaults to ''
# #
class cloudkitty::storage( class cloudkitty::storage(
$extra_params = '--config-file /etc/cloudkitty/cloudkitty.conf', $extra_params = ''
){ ){
include cloudkitty::deps include cloudkitty::deps

View File

@ -6,7 +6,7 @@ describe 'cloudkitty::storage' do
it 'runs cloudkitty-storage-init' do it 'runs cloudkitty-storage-init' do
is_expected.to contain_exec('cloudkitty-storage-init').with( is_expected.to contain_exec('cloudkitty-storage-init').with(
:command => 'cloudkitty-storage-init --config-file /etc/cloudkitty/cloudkitty.conf', :command => 'cloudkitty-storage-init ',
:path => '/usr/bin', :path => '/usr/bin',
:refreshonly => 'true', :refreshonly => 'true',
:user => 'cloudkitty', :user => 'cloudkitty',