mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Various simple linting type cleanups on modules
This commit is contained in:
parent
4ec0ccd5ac
commit
aaf762573e
11 changed files with 8 additions and 14 deletions
|
@ -146,7 +146,7 @@ def main():
|
|||
if mysqlvar is None:
|
||||
module.fail_json(msg="Cannot run without variable to operate with")
|
||||
if match('^[0-9a-z_]+$', mysqlvar) is None:
|
||||
module.fail_json(msg="invalid variable name \"%s\"" % mysqlvar)
|
||||
module.fail_json(msg="invalid variable name \"%s\"" % mysqlvar)
|
||||
if not mysqldb_found:
|
||||
module.fail_json(msg="the python mysqldb module is required")
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue