mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 14:21:26 -07:00
Assorted pylint fixes
This commit is contained in:
parent
8e0f95951d
commit
f9ab9b4d68
65 changed files with 343 additions and 473 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# (c) 2014, Michael J. Schultz <mjschultz@gmail.com>
|
||||
# Copyright: (c) 2014, Michael J. Schultz <mjschultz@gmail.com>
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
|
@ -135,7 +135,7 @@ from ansible.module_utils.aws.core import AnsibleAWSModule
|
|||
|
||||
|
||||
def arn_topic_lookup(module, client, short_topic):
|
||||
lookup_topic = ':{}'.format(short_topic)
|
||||
lookup_topic = ':{0}'.format(short_topic)
|
||||
|
||||
try:
|
||||
paginator = client.get_paginator('list_topics')
|
||||
|
@ -206,7 +206,7 @@ def main():
|
|||
sns_kwargs['TopicArn'] = arn_topic_lookup(module, client, topic)
|
||||
|
||||
if not sns_kwargs['TopicArn']:
|
||||
module.fail_json(msg='Could not find topic: {}'.format(topic))
|
||||
module.fail_json(msg='Could not find topic: {0}'.format(topic))
|
||||
|
||||
if sns_kwargs['MessageStructure'] == 'json':
|
||||
sns_kwargs['Message'] = json.dumps(dict_msg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue