openshift-eng / elliott

Apache License 2.0
15 stars 28 forks source link

Fix wrong function call on asyncio #369

Closed thiagoalessio closed 2 years ago

thiagoalessio commented 2 years ago
Python 3.6.15

>>> import asyncio

>>> async def hello():
...   print("Hello")

>>> asyncio.run(hello())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'asyncio' has no attribute 'run'

>>> asyncio.get_event_loop().run_until_complete(hello())
Hello
locriandev commented 2 years ago

/lgtm