ttm: use dashboard_content_ensure()
This commit is contained in:
parent
e8c002d37b
commit
ed8346fca3
@ -548,9 +548,7 @@ class ToTestBase(object):
|
||||
|
||||
def write_version_to_dashboard(self, target, version):
|
||||
if not self.dryrun:
|
||||
url = self.api.makeurl(
|
||||
['source', '%s:Staging' % self.project, 'dashboard', 'version_%s' % target])
|
||||
osc.core.http_PUT(url + '?comment=Update+version', data=version)
|
||||
self.api.dashboard_content_ensure('version_%s' % target, version, comment='Update version')
|
||||
|
||||
|
||||
class ToTestBaseNew(ToTestBase):
|
||||
|
Loading…
x
Reference in New Issue
Block a user