Fix db-sync

This fixes the command used to sync zaqar database.

Change-Id: I9e57885796a6ba2efe8d7a16528d582163ae896a
This commit is contained in:
Thomas Herve 2017-03-07 14:10:01 +01:00
parent 4ddc999927
commit d1e35d4e6b
3 changed files with 6 additions and 3 deletions

View File

@ -1,12 +1,12 @@
#
# Class to execute "zaqar-manage db_sync
# Class to execute "zaqar-sql-db-manage upgrade head"
#
class zaqar::db::sync {
include ::zaqar::deps
exec { 'zaqar-db-sync':
command => 'zaqar-manage db_sync',
command => 'zaqar-sql-db-manage upgrade head',
path => '/usr/bin',
user => 'zaqar',
refreshonly => true,

View File

@ -0,0 +1,3 @@
---
fixes:
- Fix command used for db sync.

View File

@ -8,7 +8,7 @@ describe 'zaqar::db::sync' do
it 'runs zaqar-db-sync' do
is_expected.to contain_exec('zaqar-db-sync').with(
:command => 'zaqar-manage db_sync',
:command => 'zaqar-sql-db-manage upgrade head',
:path => '/usr/bin',
:refreshonly => 'true',
:user => 'zaqar',