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 26446e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/7716.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Incremental export not happening if last export was null even if start_version is provided
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 26446e7

Please sign in to comment.