Merge "Fix db-sync"

This commit is contained in:
Jenkins 2017-03-08 07:09:03 +00:00 committed by Gerrit Code Review
commit 2fee18d994
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',