Skip to content

Commit

Permalink
use migrate --check not migrate --plan |grep check for migrations
Browse files Browse the repository at this point in the history
`--check` is available since Django 3.1 and is nicer than having to grep
for a message that can be different in another language.
  • Loading branch information
evgeni committed May 3, 2024
1 parent 21aa39e commit 2c7676e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/database.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

pulpcore::admin { 'migrate --noinput':
timeout => $timeout,
unless => 'pulpcore-manager migrate --plan | grep "No planned migration operations"',
unless => 'pulpcore-manager migrate --check',
refreshonly => false,
}

Expand Down

0 comments on commit 2c7676e

Please sign in to comment.