PR#2238: hub: deprecate host.getTask call
Merges #2238 https://pagure.io/koji/pull-request/2238 Fixes: #1440 https://pagure.io/koji/issue/1440 Deprecate host.getTask API call
This commit is contained in:
commit
0dcf9f31b1
1 changed files with 2 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ from koji.daemon import SCM
|
|||
from koji.util import (
|
||||
base64encode,
|
||||
decode_bytes,
|
||||
deprecated,
|
||||
dslice,
|
||||
joinpath,
|
||||
move_and_symlink,
|
||||
|
|
@ -13502,6 +13503,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")
|
||||
host = Host()
|
||||
host.verify()
|
||||
return host.getTask()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue