Skip to content

Commit f9fb499

Browse files
committed
use migrate --check not migrate --plan |grep check for migrations
`--check` is available since Django 3.1 and is nicer than having to grep for a message that can be different in another language.
1 parent 21aa39e commit f9fb499

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

manifests/database.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
pulpcore::admin { 'migrate --noinput':
3232
timeout => $timeout,
33-
unless => 'pulpcore-manager migrate --plan | grep "No planned migration operations"',
33+
unless => 'pulpcore-manager migrate --check',
3434
refreshonly => false,
3535
}
3636

0 commit comments

Comments
 (0)