Skip to content

Commit

Permalink
fix load_incluster config does not return a coroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
LawiK974 committed Mar 12, 2024
1 parent 6fba83c commit 8d74c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kube_notify/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def main():
# Initialize Kubernetes client
ioloop = asyncio.get_event_loop()
if args.inCluster:
ioloop.run_until_complete(kubernetes_asyncio.config.load_incluster_config())
kubernetes_asyncio.config.load_incluster_config()
else:
ioloop.run_until_complete(
kubernetes_asyncio.config.load_kube_config(context=args.context)
Expand Down

0 comments on commit 8d74c3f

Please sign in to comment.