Skip to content

Commit

Permalink
fix(#739): remove unknown import for earlier python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidiert committed Dec 11, 2024
1 parent 3041397 commit cc79f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operator/gefyra/bridgestate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime, UTC
from datetime import datetime
from typing import Any, Optional
from gefyra.bridge.abstract import AbstractGefyraBridgeProvider
from gefyra.bridge.factory import BridgeProviderType, bridge_provider_factory
Expand Down Expand Up @@ -107,7 +107,7 @@ def sunset(self) -> Optional[datetime]:

@property
def should_terminate(self) -> bool:
if self.sunset and self.sunset <= datetime.now(UTC):
if self.sunset and self.sunset <= datetime.utcnow():
# remove this bridge because the sunset time is in the past
self.logger.warning(
f"Bridge '{self.object_name}' should be terminated "
Expand Down

0 comments on commit cc79f16

Please sign in to comment.