mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
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:
parent
4d0781be61
commit
5568ffd45b
2 changed files with 1 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue