Actions
Issue #2722
closedLocal variable 'published_after_predistributor' referenced before assignment"
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.13.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 19
Quarter:
Description
1. create repo with yum and rsync dist
2. publish with rsync --> observe skipped publish result
3. publish with rsync again and observe the traceback
Operations: publish
Resources: test-repo380 (repository)
State: Failed
Start Time: 2017-04-19T12:12:41Z
Finish Time: 2017-04-19T12:12:41Z
Result: N/A
Task Id: 497cf91a-350c-4fd8-83b9-72b386dd3aff
Progress Report:
Traceback: Traceback (most recent call last): File
"/usr/lib/python2.7/site-packages/celery/app/trace.py", line
240, in trace_task R = retval = fun(*args, **kwargs)
File
"/home/ipanova/pulp_development/pulp/server/pulp/server/async/
tasks.py", line 506, in __call__ return super(Task,
self).__call__(*args, **kwargs) File
"/home/ipanova/pulp_development/pulp/server/pulp/server/async/
tasks.py", line 107, in __call__ return super(PulpTask,
self).__call__(*args, **kwargs) File
"/usr/lib/python2.7/site-packages/celery/app/trace.py", line
437, in __protected_call__ return self.run(*args,
**kwargs) File
"/home/ipanova/pulp_development/pulp/server/pulp/server/contro
llers/repository.py", line 1106, in publish result =
check_publish(repo_obj, dist_id, dist_inst, transfer_repo,
conduit, call_config) File
"/home/ipanova/pulp_development/pulp/server/pulp/server/contro
llers/repository.py", line 1164, in check_publish
skip_for_predistributor = (predistributor_id and
(published_after_predistributor or UnboundLocalError: local
variable 'published_after_predistributor' referenced before
assignment
Updated by ttereshc about 6 years ago
- Sprint/Milestone set to 37
- Triaged changed from No to Yes
Updated by dalley about 6 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dalley
Updated by dalley about 6 years ago
- Status changed from ASSIGNED to POST
Added by dalley about 6 years ago
Updated by jortel@redhat.com about 6 years ago
- Sprint/Milestone changed from 37 to 38
Updated by dalley about 6 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|417b88e31e2c54ff03cd101fdecf4b9ded2edd8d.
Updated by bizhang about 6 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Actions
Fix 'referenced before assignment' errors
Fix several cases where variables defined behind conditionals are referenced elsewhere in the code from an upper scope.
closes #2722 https://pulp.plan.io/issues/2722