Merge pull request #2358 from coolo/stop_adi_accept

No longer close acceptable adi stagings
This commit is contained in:
Stephan Kulow 2019-12-04 20:18:40 +01:00 committed by GitHub
commit 660ec7a790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class AcceptCommand(object):
status = self.api.project_status(project)
if status.get('state') != 'acceptable' and not force:
print('The project "{}" is not yet acceptable.'.format(project))
#return False
return False
staging_packages[project] = []
for request in status.findall('staged_requests/request'):

View File

@ -59,6 +59,9 @@ class AdiCommand:
if overall_state != 'acceptable' and overall_state != 'empty':
raise oscerr.WrongArgs('Missed some case')
# no longer accept/delete adi projects
return
if self.api.is_user_member_of(self.api.user, self.api.cstaging_group):
print(query_project + ' ' + Fore.GREEN + 'ready')
packages = []