From 916a56764f35bcf497bfbdbad8eda3097722bfe0 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 22 Feb 2017 11:02:38 +0100 Subject: [PATCH] Add a link to the dashboard of the respective adi project being created --- osclib/stagingapi.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/osclib/stagingapi.py b/osclib/stagingapi.py index d7560b11..15593e8c 100644 --- a/osclib/stagingapi.py +++ b/osclib/stagingapi.py @@ -1298,9 +1298,10 @@ class StagingAPI(object): raise Exception('Project {} already exist'.format(name)) meta = """ - + + /project/staging_projects/{1}/adi:{2} @@ -1308,10 +1309,10 @@ class StagingAPI(object): - + x86_64 - """.format(name, self.project) + """.format(name, self.project, self.extract_adi_number(name)) url = make_meta_url('prj', name, self.apiurl) http_PUT(url, data=meta) # put twice because on first put, the API adds useless maintainer