PR#2264: replace deprecated function with logging

Merges #2264
https://pagure.io/koji/pull-request/2264

Fixes: #1440
https://pagure.io/koji/issue/1440
Deprecate host.getTask API call
This commit is contained in:
Tomas Kopecek 2020-05-19 14:42:00 +02:00
commit f74da269f4

View file

@ -64,7 +64,6 @@ from koji.daemon import SCM
from koji.util import (
base64encode,
decode_bytes,
deprecated,
dslice,
joinpath,
move_and_symlink,
@ -13503,7 +13502,7 @@ class HostExports(object):
return task.open(host.id)
def getTask(self):
deprecated("Call host.openTask is deprecated and will be removed in 1.23")
logging.warn("Call host.getTask is deprecated and will be removed in 1.23")
host = Host()
host.verify()
return host.getTask()