Skip to content

Commit e21f18e

Browse files
talekRendanic
authored andcommitted
Fix err_msg not being initialized when check_creates_sql is invoked
1 parent 2c6ee28 commit e21f18e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/modules/oracle_sqldba

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@ def run_sql(sql, username, password, pdb):
266266

267267

268268
def check_creates_sql(sql, scope):
269-
global pdb_list
269+
global pdb_list, err_msg
270270

271+
err_msg = ""
271272
if not sql.endswith(";"):
272273
sql += ";"
273274
if scope == 'cdb':

0 commit comments

Comments
 (0)