|
7 | 7 | from ..connector.aws_s3_connector import AWSS3Connector
|
8 | 8 | from ..connector.spaceone_connector import SpaceONEConnector
|
9 | 9 |
|
10 |
| -_LOGGER = logging.getLogger(__name__) |
| 10 | +_LOGGER = logging.getLogger("spaceone") |
11 | 11 | _DEFAULT_DATABASE = "MZC"
|
12 | 12 |
|
13 | 13 |
|
@@ -72,16 +72,18 @@ def get_tasks(
|
72 | 72 | first_sync_month = self._get_start_month(options, start)
|
73 | 73 | task_options["start"] = first_sync_month
|
74 | 74 |
|
75 |
| - changed.append( |
76 |
| - { |
77 |
| - "start": first_sync_month, |
78 |
| - "filter": {"additional_info.Account ID": account_id}, |
79 |
| - } |
80 |
| - ) |
| 75 | + task_changed = { |
| 76 | + "start": first_sync_month, |
| 77 | + "filter": {"additional_info.Account ID": account_id}, |
| 78 | + } |
| 79 | + |
81 | 80 | else:
|
82 | 81 | task_options["start"] = start_month
|
| 82 | + task_changed = {"start": start_month} |
83 | 83 |
|
84 |
| - tasks.append({"task_options": task_options}) |
| 84 | + tasks.append( |
| 85 | + {"task_options": task_options, "task_changed": task_changed} |
| 86 | + ) |
85 | 87 |
|
86 | 88 | changed.append({"start": start_month})
|
87 | 89 |
|
@@ -133,7 +135,8 @@ def get_tasks_directory_type(
|
133 | 135 | "is_sync": "true",
|
134 | 136 | "task_type": "directory",
|
135 | 137 | }
|
136 |
| - tasks.append({"task_options": task_options}) |
| 138 | + task_changed = {"start": start_month} |
| 139 | + tasks.append({"task_options": task_options, "task_changed": task_changed}) |
137 | 140 |
|
138 | 141 | changed.append({"start": start_month})
|
139 | 142 |
|
|
0 commit comments