code: def get_build_status(req_id, nodename):
      '''
      get the build status from CLC to make sure we dont return to early
      '''
      counter = 0
      req_id = six.text_type(req_id)
      while counter < 10:
          queue = clc.v1.Blueprint.GetStatus(request_id=(req_id))
          if queue["PercentComplete"] == 100:
              server_name = queue["Servers"][0]
              creds = get_creds()
              clc.v2.SetCredentials(creds["user"], creds["password"])
              ip_addresses = clc.v2.Server(server_name).ip_addresses
              internal_ip_address = ip_addresses[0]["internal"]
              return internal_ip_address
          else:
              counter = counter + 1
              log.info('Creating Cloud VM %s Time out in %s minutes',
                       nodename, six.text_type(10 - counter))
              time.sleep(60f get_build_status(req_id, nodename):
      '''
      get the build status from CLC to make sure we dont return to early
      '''
      counter = 0
      req_id = six.text_type(req_id)
      while counter < 10:
          queue = clc.v1.Blueprint.GetStatus(request_id=(req_id))
          if queue["PercentComplete"] == 100:
              server_name = queue["Servers"][0]
              creds = get_creds()
              clc.v2.SetCredentials(creds["user"], creds["password"])
              ip_addresses = clc.v2.Server(server_name).ip_addresses
              internal_ip_address = ip_addresses[0]["internal"]
              return internal_ip_address
          else:
              counter = counter + 1
              log.info('Creating Cloud VM %s Time out in %s minutes',
                       nodename, six.text_type(10 - counter))
              time.sleep(60)
docs: get the build status from CLC to make sure we dont return to early