def log_wait(self, obj, att="status", desired=None, verbose_atts=None):
        start = time.time()
        self.logit("Beginning wait for", obj.name, obj)
        if not desired:
            desired = ["ACTIVE", "ERROR"]
        ret = utils.wait_until(obj, "status", desired=desired, interval=10,
                verbose=True, verbose_atts="progress")
        end = time.time()
        duration = str(datetime.timedelta(seconds=(end - start)))
        self.logit("Completed wait for", obj.name, obj)
        self.logit("  It took %s to complete" % duration)
        return ret
dataset/ETHPy150Open rackspace/pyrax/tests/integrated/smoketest.py/SmokeTester.log_wait/original