mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Assorted pylint fixes
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# (c) Quentin Stafford-Fraser 2015, with contributions gratefully acknowledged from:
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright: (c) 2015, Quentin Stafford-Fraser, with contributions gratefully acknowledged from:
|
||||
# * Andy Baker
|
||||
# * Federico Tarantini
|
||||
#
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
#
|
||||
|
||||
# Create a Webfaction application using Ansible and the Webfaction API
|
||||
#
|
||||
# Valid application types can be found by looking here:
|
||||
@@ -183,7 +184,7 @@ def main():
|
||||
)
|
||||
|
||||
else:
|
||||
module.fail_json(msg="Unknown state specified: {}".format(app_state))
|
||||
module.fail_json(msg="Unknown state specified: {0}".format(app_state))
|
||||
|
||||
module.exit_json(
|
||||
changed=True,
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# (c) Quentin Stafford-Fraser 2015, with contributions gratefully acknowledged from:
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright: (c) 2015, Quentin Stafford-Fraser, with contributions gratefully acknowledged from:
|
||||
# * Andy Baker
|
||||
# * Federico Tarantini
|
||||
#
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
#
|
||||
|
||||
# Create a webfaction database using Ansible and the Webfaction API
|
||||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
@@ -181,7 +182,7 @@ def main():
|
||||
)
|
||||
|
||||
else:
|
||||
module.fail_json(msg="Unknown state specified: {}".format(db_state))
|
||||
module.fail_json(msg="Unknown state specified: {0}".format(db_state))
|
||||
|
||||
module.exit_json(
|
||||
changed=True,
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# (c) Quentin Stafford-Fraser 2015
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright: (c) 2015, Quentin Stafford-Fraser
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
#
|
||||
|
||||
# Create Webfaction domains and subdomains using Ansible and the Webfaction API
|
||||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
@@ -155,7 +156,7 @@ def main():
|
||||
)
|
||||
|
||||
else:
|
||||
module.fail_json(msg="Unknown state specified: {}".format(domain_state))
|
||||
module.fail_json(msg="Unknown state specified: {0}".format(domain_state))
|
||||
|
||||
module.exit_json(
|
||||
changed=True,
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# (c) Quentin Stafford-Fraser and Andy Baker 2015
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright: (c) 2015, Quentin Stafford-Fraser and Andy Baker
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
#
|
||||
|
||||
# Create webfaction mailbox using Ansible and the Webfaction API
|
||||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
@@ -126,7 +127,7 @@ def main():
|
||||
result.update(webfaction.delete_mailbox(session_id, mailbox_name))
|
||||
|
||||
else:
|
||||
module.fail_json(msg="Unknown state specified: {}".format(site_state))
|
||||
module.fail_json(msg="Unknown state specified: {0}".format(site_state))
|
||||
|
||||
module.exit_json(changed=True, result=result)
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
#!/usr/bin/python
|
||||
# (c) Quentin Stafford-Fraser 2015
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright: (c) 2015, Quentin Stafford-Fraser
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
#
|
||||
|
||||
# Create Webfaction website using Ansible and the Webfaction API
|
||||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
@@ -190,7 +192,7 @@ def main():
|
||||
)
|
||||
|
||||
else:
|
||||
module.fail_json(msg="Unknown state specified: {}".format(site_state))
|
||||
module.fail_json(msg="Unknown state specified: {0}".format(site_state))
|
||||
|
||||
module.exit_json(
|
||||
changed=True,
|
||||
|
||||
Reference in New Issue
Block a user