def wait_for_datacenter(client, data_center_id):
total_sleep_time = <NUM_LIT:0><EOL>seconds = <NUM_LIT:5><EOL>while True:<EOL><INDENT>state = client.get_datacenter(data_center_id)['<STR_LIT>']['<STR_LIT:state>']<EOL>if verbose:<EOL><INDENT>print("<STR_LIT>".format(state))<EOL><DEDENT>if state == "<STR_LIT>":<EOL><INDENT>break<EOL><DEDENT>time.sleep(seconds)<EOL>total_sleep_time += seconds<EOL>if total_sleep_time == <NUM_LIT>:<EOL><INDENT>seconds = <NUM_LIT:10><EOL><DEDENT>elif total_sleep_time == <NUM_LIT>:<EOL><INDENT>seconds = <NUM_LIT:20><EOL><DEDENT><DEDENT>
Poll the data center to become available (for the next provisionig job)