Skip to content

Commit

Permalink
fixes #7716 - Incremental export not enabled even if start_version is…
Browse files Browse the repository at this point in the history
… provided
  • Loading branch information
parthaa committed Oct 15, 2020
1 parent 130f982 commit 67bbd14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pulpcore/app/tasks/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ def _incremental_requested(the_export):
full = the_export.params.get("full", True)
if isinstance(full, str):
full = bool(strtobool(full))
starting_versions_provided = len(the_export.params.get("start_versions", [])) > 0
last_exists = the_exporter.last_export
return last_exists and not full
return (starting_versions_provided or last_exists) and not full


def pulp_export(the_export):
Expand Down

0 comments on commit 67bbd14

Please sign in to comment.