def get_installing_progress(self, cluster_id):
        """get intalling progress."""
        action_timeout = time.time() + 60 * float(CONF.action_timeout)
        deployment_timeout = time.time() + 60 * float(
            CONF.deployment_timeout)

        current_time = time.time()
        deployment_failed = True
        while deployment_timeout < current_time:
            status, cluster_state = self.client.get_cluster_state(cluster_id)
            LOG.info(
                'get cluster %s state status %s: %s',
                cluster_id, status, cluster_state
            )
            if not self.is_ok(status):
                raise RuntimeError("can not get cluster state")

            if cluster_state['state'] in ['UNINITIALIZED', 'INITIALIZED']:
                if current_time >= action_timeout:
                    deployment_failed = True
                    break
                else:
                    continue

            elif cluster_state['state'] == 'SUCCESSFUL':
                deployment_failed = False
                break
            elif cluster_state['state'] == 'ERROR':
                deployment_failed = True
                break

        if deployment_failed:
            raise RuntimeError("deploy cluster failed")
dataset/ETHPy150Open openstack/compass-core/bin/client.py/CompassClient.get_installing_progress/swapped operands of `<`