Skip to content

Commit ec906c6

Browse files
author
Nick Selpa
committed

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

cloudendure/cloudendure.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -460,18 +460,8 @@ def get_machine_sync_details(self) -> List[Any]:
460460
ce_project_inventory = json.loads(machines_response.text).get("items", [])
461461
for _query_value in ce_project_inventory:
462462
machine_name: str = _query_value["sourceProperties"]["name"]
463-
sync_details: Dict[str, Any] = {
464-
"machine_name": machine_name,
465-
"in_inventory": "false",
466-
"replication_status": "",
467-
"last_seen_utc": "",
468-
"total_storage_bytes": "",
469-
"replicated_storage_bytes": "",
470-
"rescanned_storage_bytes": "",
471-
"backlogged_storage_bytes": "",
472-
}
473463
if "rescannedStorageBytes" in _query_value["replicationInfo"]:
474-
sync_details = {
464+
sync_details: Dict[str, Any] = {
475465
"machine_name": machine_name,
476466
"in_inventory": _query_value["isAgentInstalled"],
477467
"replication_status": _query_value["replicationStatus"],
@@ -483,7 +473,7 @@ def get_machine_sync_details(self) -> List[Any]:
483473
}
484474
response_list.append(sync_details)
485475
else:
486-
sync_details = {
476+
sync_details: Dict[str, Any] = {
487477
"machine_name": machine_name,
488478
"in_inventory": _query_value["isAgentInstalled"],
489479
"replication_status": _query_value["replicationStatus"],

0 commit comments

Comments
 (0)