Various simple linting type cleanups on modules

This commit is contained in:
Matt Martz 2016-02-16 15:58:44 -06:00 committed by Matt Clay
parent 4ec0ccd5ac
commit aaf762573e
11 changed files with 8 additions and 14 deletions

View file

@ -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: