Enable DB purge cron job after database is initialized
The DB purge operation expects the target database is already initialized. This change ensures db sync is completed before cron job is enabled. Closes-Bug #1955829 Change-Id: Ib3ed541ee0b3a513efe961ba6142a0cbb09ee61a
This commit is contained in:
parent
9174eaf8da
commit
9be4e0e905
@ -84,6 +84,6 @@ class manila::cron::db_purge (
|
||||
monthday => $monthday,
|
||||
month => $month,
|
||||
weekday => $weekday,
|
||||
require => Anchor['manila::install::end'],
|
||||
require => Anchor['manila::dbsync::end'],
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ describe 'manila::cron::db_purge' do
|
||||
:monthday => params[:monthday],
|
||||
:month => params[:month],
|
||||
:weekday => params[:weekday],
|
||||
:require => 'Anchor[manila::install::end]'
|
||||
:require => 'Anchor[manila::dbsync::end]'
|
||||
)}
|
||||
end
|
||||
|
||||
@ -46,7 +46,7 @@ describe 'manila::cron::db_purge' do
|
||||
:monthday => params[:monthday],
|
||||
:month => params[:month],
|
||||
:weekday => params[:weekday],
|
||||
:require => 'Anchor[manila::install::end]'
|
||||
:require => 'Anchor[manila::dbsync::end]'
|
||||
)}
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user