]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart_runner.py: use tuple instead of set
authorRishabh Dave <ridave@redhat.com>
Fri, 8 May 2020 11:40:24 +0000 (17:10 +0530)
committerKefu Chai <kchai@redhat.com>
Wed, 3 Jun 2020 11:57:00 +0000 (19:57 +0800)
Using python3 leads to an error that says
"TypeError: unhashable type: 'Raw'".

Fixes: https://tracker.ceph.com/issues/45446
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit cb0bfc8fab4372b0caf5102823883b0b913d4fcb)

Conflicts:
qa/tasks/vstart_runner.py: trivial resolution

qa/tasks/vstart_runner.py

index f0e43156ebe87a0c00c54b3503c4249692940d21..27a2c33b12273b737e8f41d215f71bb51553582f 100644 (file)
@@ -251,8 +251,8 @@ class LocalRemote(object):
         shell = any([a for a in args if isinstance(a, Raw)])
 
         # Filter out helper tools that don't exist in a vstart environment
-        args = [a for a in args if a not in {
-            'adjust-ulimits', 'ceph-coverage', 'timeout'}]
+        args = [a for a in args if a not in (
+            'adjust-ulimits', 'ceph-coverage', 'timeout')]
 
         # Adjust binary path prefix if given a bare program name
         if "/" not in args[0]: