aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/apis/kubernetes/deployments.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-04-27 22:26:24 +0100
committerGravatar Chris Lovering <[email protected]>2023-04-27 22:26:24 +0100
commitd6a95edbc1b4cdb0e9dad5902c5b270c962453e8 (patch)
tree86ead71bb3b5d57f886b77a45455d43bfa2cd5ec /arthur/apis/kubernetes/deployments.py
parentReplace Flake8 and various linting plugins with ruff (diff)
Fix linting errors from new ruff rules
Diffstat (limited to 'arthur/apis/kubernetes/deployments.py')
-rw-r--r--arthur/apis/kubernetes/deployments.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/arthur/apis/kubernetes/deployments.py b/arthur/apis/kubernetes/deployments.py
index f7b4d5c..971c4a0 100644
--- a/arthur/apis/kubernetes/deployments.py
+++ b/arthur/apis/kubernetes/deployments.py
@@ -1,5 +1,5 @@
"""APIs for working with Kubernetes deployments."""
-from datetime import datetime, timezone
+from datetime import UTC, datetime
from kubernetes_asyncio import client
from kubernetes_asyncio.client.api_client import ApiClient
@@ -18,9 +18,7 @@ async def restart_deployment(deployment: str, namespace: str) -> None:
"template": {
"metadata": {
"annotations": {
- "king-arthur.pydis.com/restartedAt": datetime.now(
- timezone.utc
- ).isoformat()
+ "king-arthur.pydis.com/restartedAt": datetime.now(UTC).isoformat()
}
}
}