Fix syntax error for Python 2.6 (#47635)

* Fix syntax error for Python 2.6

* Removing consul.py from pylint/ignore.txt
This commit is contained in:
Brandon Bell 2018-10-26 21:43:53 -05:00 committed by Jordan Borean
parent 4d0781be61
commit 5568ffd45b
2 changed files with 1 additions and 2 deletions

View file

@ -475,7 +475,7 @@ class ConsulCheck(object):
if duration:
duration_units = ['ns', 'us', 'ms', 's', 'm', 'h']
if not any((duration.endswith(suffix) for suffix in duration_units)):
duration = "{}s".format(duration)
duration = "{0}s".format(duration)
return duration
def register(self, consul_api):

View file

@ -28,7 +28,6 @@ lib/ansible/modules/cloud/webfaction/webfaction_db.py ansible-format-automatic-s
lib/ansible/modules/cloud/webfaction/webfaction_domain.py ansible-format-automatic-specification
lib/ansible/modules/cloud/webfaction/webfaction_mailbox.py ansible-format-automatic-specification
lib/ansible/modules/cloud/webfaction/webfaction_site.py ansible-format-automatic-specification
lib/ansible/modules/clustering/consul.py ansible-format-automatic-specification
lib/ansible/modules/monitoring/grafana_plugin.py ansible-format-automatic-specification
lib/ansible/modules/net_tools/dnsmadeeasy.py ansible-format-automatic-specification
lib/ansible/modules/net_tools/ipinfoio_facts.py ansible-format-automatic-specification