diff --git a/osclib/accept_command.py b/osclib/accept_command.py index e4d2f11c..1db7f4ff 100644 --- a/osclib/accept_command.py +++ b/osclib/accept_command.py @@ -35,7 +35,7 @@ class AcceptCommand(object): return rqs def reset_rebuild_data(self, project): - url = self.api.makeurl(['source', self.cstaging, 'dashboard', 'support_pkg_rebuild?expand=1']) + url = self.api.makeurl(['source', self.api.cstaging, 'dashboard', 'support_pkg_rebuild?expand=1']) try: data = http_GET(url) except urllib2.HTTPError: @@ -47,7 +47,7 @@ class AcceptCommand(object): stg.find('rebuild').text = 'unknown' # reset accpted staging project rebuild state to unknown - url = self.api.makeurl(['source', self.cstaging, 'dashboard', 'support_pkg_rebuild']) + url = self.api.makeurl(['source', self.api.cstaging, 'dashboard', 'support_pkg_rebuild']) content = ET.tostring(root) http_PUT(url + '?comment=accept+command+update', data=content)