mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07:00
Pep8 fixes for django_manage (#24198)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
0cf00db750
commit
df5be2b8ea
2 changed files with 27 additions and 20 deletions
|
@ -141,6 +141,7 @@ EXAMPLES = """
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
def _fail(module, cmd, out, err, **kwargs):
|
def _fail(module, cmd, out, err, **kwargs):
|
||||||
msg = ''
|
msg = ''
|
||||||
if out:
|
if out:
|
||||||
|
@ -170,24 +171,31 @@ def _ensure_virtualenv(module):
|
||||||
os.environ["PATH"] = "%s:%s" % (vbin, os.environ["PATH"])
|
os.environ["PATH"] = "%s:%s" % (vbin, os.environ["PATH"])
|
||||||
os.environ["VIRTUAL_ENV"] = venv_param
|
os.environ["VIRTUAL_ENV"] = venv_param
|
||||||
|
|
||||||
|
|
||||||
def createcachetable_filter_output(line):
|
def createcachetable_filter_output(line):
|
||||||
return "Already exists" not in line
|
return "Already exists" not in line
|
||||||
|
|
||||||
|
|
||||||
def flush_filter_output(line):
|
def flush_filter_output(line):
|
||||||
return "Installed" in line and "Installed 0 object" not in line
|
return "Installed" in line and "Installed 0 object" not in line
|
||||||
|
|
||||||
|
|
||||||
def loaddata_filter_output(line):
|
def loaddata_filter_output(line):
|
||||||
return "Installed" in line and "Installed 0 object" not in line
|
return "Installed" in line and "Installed 0 object" not in line
|
||||||
|
|
||||||
|
|
||||||
def syncdb_filter_output(line):
|
def syncdb_filter_output(line):
|
||||||
return ("Creating table " in line) or ("Installed" in line and "Installed 0 object" not in line)
|
return ("Creating table " in line) or ("Installed" in line and "Installed 0 object" not in line)
|
||||||
|
|
||||||
|
|
||||||
def migrate_filter_output(line):
|
def migrate_filter_output(line):
|
||||||
return ("Migrating forwards " in line) or ("Installed" in line and "Installed 0 object" not in line) or ("Applying" in line)
|
return ("Migrating forwards " in line) or ("Installed" in line and "Installed 0 object" not in line) or ("Applying" in line)
|
||||||
|
|
||||||
|
|
||||||
def collectstatic_filter_output(line):
|
def collectstatic_filter_output(line):
|
||||||
return line and "0 static files" not in line
|
return line and "0 static files" not in line
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
command_allowed_param_map = dict(
|
command_allowed_param_map = dict(
|
||||||
cleanup=(),
|
cleanup=(),
|
||||||
|
|
|
@ -768,7 +768,6 @@ lib/ansible/modules/web_infrastructure/ansible_tower/tower_role.py
|
||||||
lib/ansible/modules/web_infrastructure/ansible_tower/tower_team.py
|
lib/ansible/modules/web_infrastructure/ansible_tower/tower_team.py
|
||||||
lib/ansible/modules/web_infrastructure/ansible_tower/tower_user.py
|
lib/ansible/modules/web_infrastructure/ansible_tower/tower_user.py
|
||||||
lib/ansible/modules/web_infrastructure/deploy_helper.py
|
lib/ansible/modules/web_infrastructure/deploy_helper.py
|
||||||
lib/ansible/modules/web_infrastructure/django_manage.py
|
|
||||||
lib/ansible/modules/web_infrastructure/ejabberd_user.py
|
lib/ansible/modules/web_infrastructure/ejabberd_user.py
|
||||||
lib/ansible/modules/web_infrastructure/htpasswd.py
|
lib/ansible/modules/web_infrastructure/htpasswd.py
|
||||||
lib/ansible/modules/web_infrastructure/jboss.py
|
lib/ansible/modules/web_infrastructure/jboss.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue