]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
if there is no state to look at continue until we get something
authorAlfredo Deza <adeza@redhat.com>
Wed, 25 May 2016 18:22:12 +0000 (14:22 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 25 May 2016 18:22:12 +0000 (14:22 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Resolves: rhbz#1336532

radosgw_agent/worker.py

index 0087da6c286335d42fb2a11d52664a36e8b138bd..4d82b126f2dab3a015403b365ad9e024119f01f6 100644 (file)
@@ -272,6 +272,9 @@ class DataWorker(Worker):
                                             local_op_id,
                                             bucket, obj)
                 log.debug('op state is %s', state)
+                if not state:
+                    time.sleep(1)
+                    continue
                 state = state[0]['state']
                 if state == 'complete':
                     return