mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Merge pull request #6697 from chrismeyersfsu/fix-collection_tests
ensure last comma removed in select
This commit is contained in:
commit
dbe949a2c2
@ -36,6 +36,8 @@ def sqlite_copy_expert(request):
|
||||
for line in sql.split('\n'):
|
||||
if line.find('main_jobevent.event_data::') == -1:
|
||||
sql_new.append(line)
|
||||
elif not line.endswith(','):
|
||||
sql_new[-1] = sql_new[-1].rstrip(',')
|
||||
sql = '\n'.join(sql_new)
|
||||
|
||||
self.execute(sql)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user