diff --git a/puppet/environment/docker/modules/mariadb/scripts/setup_tables.py b/puppet/environment/docker/modules/mariadb/scripts/setup_tables.py index c3dd42562..8d7a1734c 100644 --- a/puppet/environment/docker/modules/mariadb/scripts/setup_tables.py +++ b/puppet/environment/docker/modules/mariadb/scripts/setup_tables.py @@ -355,13 +355,13 @@ class VARCHAR (50) NOT NULL query = '''\ INSERT INTO RoleType (RoleType) VALUES (%s); ''' - args = 'default' + args = ('default') cur.execute(query, args) query = '''\ INSERT INTO Role (RoleOwner, RoleTypeID, UserID) VALUES (%s, %s, %s); ''' - args = (0, 0, 0) + args = ('0', '1', '1') cur.execute(query, args) # ################################################################################# # @@ -372,7 +372,7 @@ class VARCHAR (50) NOT NULL query = '''\ INSERT INTO ModelType (ModelType) VALUES (%s); ''' - cur.execute(query, model_types) + cur.executemany(query, model_types) # ################################################################################# # # # @@ -382,4 +382,4 @@ class VARCHAR (50) NOT NULL query = '''\ INSERT INTO ResultType (ResultType) VALUES (%s); ''' - cur.execute(query, result_types) + cur.executemany(query, result_types)