Skip to content

Commit 029043d

Browse files
committed
Fix gppkg error: 'SyncPackages' object has no attribute 'ret'.
The command `gppkg --clean` fails with the following error: "'SyncPackages' object has no attribute 'ret'". This occurs because `operations` was being passed positionally during the OperationWorkerPool initialization, which incorrectly bound it to the `should_stop` argument instead of `items` in the base WorkerPool class. The solution is to pass `operations` as a keyword argument..
1 parent f9ca4fa commit 029043d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gpMgmt/bin/gppylib/commands/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def __init__(self, numWorkers=16, operations=None):
230230
if operations is not None:
231231
for operation in operations:
232232
self._spoof_operation(operation)
233-
super(OperationWorkerPool, self).__init__(numWorkers, operations)
233+
super(OperationWorkerPool, self).__init__(numWorkers, items=operations)
234234

235235
def check_results(self):
236236
raise NotImplementedError("OperationWorkerPool has no means of verifying success.")

0 commit comments

Comments
 (0)