diff --git a/aliyun/log/logclient.py b/aliyun/log/logclient.py index 5690bc4..8fbbba7 100644 --- a/aliyun/log/logclient.py +++ b/aliyun/log/logclient.py @@ -5825,16 +5825,9 @@ def create_rebuild_index(self, project, logstore, job_name, display_name, from_t :raise: LogException """ - if type(from_time) != int: - raise LogException("InvalidParameter", "from_time must be int") - if type(to_time) != int: - raise LogException("InvalidParameter", "to_time must be int") - if from_time >= to_time: - raise LogException("InvalidParameter", "from_time must be less than to_time") params = {} - headers = {"x-log-bodyrawsize": "0", - "Content-Type": "application/json"} + headers = {"Content-Type": "application/json"} body = { "configuration": { diff --git a/tests/rebuild_index_examples/rebuild_index_example.py b/tests/rebuild_index_examples/rebuild_index_example.py index e5fb6e3..5d32bd8 100644 --- a/tests/rebuild_index_examples/rebuild_index_example.py +++ b/tests/rebuild_index_examples/rebuild_index_example.py @@ -25,8 +25,8 @@ def main(): # wait a while util job complete while True: + print('wait rebuild index done...') time.sleep(10) - resp = client.get_rebuild_index(project, job_name) resp.log_print()