CORD-3063 Fix sync issue with downloaded images

Change-Id: I6c89ce89a057c7f3a21338ab548b5c18e42a322e
diff --git a/xos/synchronizer/steps/sync_controller_images.py b/xos/synchronizer/steps/sync_controller_images.py
index 78d205f..557c2ef 100644
--- a/xos/synchronizer/steps/sync_controller_images.py
+++ b/xos/synchronizer/steps/sync_controller_images.py
@@ -53,11 +53,11 @@
                         'ansible_tag': '%s@%s'%(controller_image.image.name,controller_image.controller.name), # name of ansible playbook
                         }
 
-	return image_fields
+        return image_fields
 
     def map_sync_outputs(self, controller_image, res):
-        image_id = res[0]['id']
+        image_id = res[-1]['id']
         controller_image.glance_image_id = image_id
-	controller_image.backend_status = 'OK'
-	controller_image.backend_code = 1
+        controller_image.backend_status = 'OK'
+        controller_image.backend_code = 1
         controller_image.save()