Fix OS install bug 89/38389/1
authorHarry Huang <huangxiangyu5@huawei.com>
Mon, 31 Jul 2017 01:48:10 +0000 (09:48 +0800)
committerHarry Huang <huangxiangyu5@huawei.com>
Mon, 31 Jul 2017 01:48:10 +0000 (09:48 +0800)
There is a missing indent in the judgement
code block for OS installation complete which
cause OS installation complete only affected
by the state of host1

Change-Id: I5d470aef93b65ca77d290e596a4fefd62a82517b
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
deploy/client.py

index 5eab212..981924f 100644 (file)
@@ -941,7 +941,7 @@ class CompassClient(object):
                 status, response = self.client.get_host_state(id)
                 if response['state'] != 'SUCCESSFUL':
                     ready = False
-                break
+                    break
 
             current_time = time.time()
             if not ready: