Skip to content

Commit 85a0331

Browse files
fix(examples): make code consistent with comment
1 parent 3c38f42 commit 85a0331

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/cloud/audit_logs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def main() -> None:
2121
# Example: list the last 10 user actions of type 'create' in the 'instance' api_group from the last 7 days
2222
from_time = (datetime.now(timezone.utc) - timedelta(days=7)).isoformat()
2323
logs = gcore.cloud.audit_logs.list(
24-
# action_type=["create"],
25-
# api_group=["instance"],
24+
action_type=["create"],
25+
api_group=["instance"],
2626
from_timestamp=from_time,
2727
limit=10,
2828
order_by="desc",

examples/cloud/audit_logs_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ async def main() -> None:
2222
# Example: list the last 10 user actions of type 'create' in the 'instance' api_group from the last 7 days
2323
from_time = (datetime.now(timezone.utc) - timedelta(days=7)).isoformat()
2424
logs = await gcore.cloud.audit_logs.list(
25-
# action_type=["create"],
26-
# api_group=["instance"],
25+
action_type=["create"],
26+
api_group=["instance"],
2727
from_timestamp=from_time,
2828
limit=10,
2929
order_by="desc",

0 commit comments

Comments
 (0)