mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Cleanup: remove unicode prefix, remove explicit inheritance from object (#11015)
* Address UP025: remove unicode literals from strings. * Address UP004: class inherits from 'object'.
This commit is contained in:
@@ -395,7 +395,7 @@ def parse_service(module):
|
||||
)
|
||||
|
||||
|
||||
class ConsulService(object):
|
||||
class ConsulService:
|
||||
|
||||
def __init__(self, service_id=None, name=None, address=None, port=-1,
|
||||
tags=None, loaded=None):
|
||||
@@ -458,7 +458,7 @@ class ConsulService(object):
|
||||
return data
|
||||
|
||||
|
||||
class ConsulCheck(object):
|
||||
class ConsulCheck:
|
||||
|
||||
def __init__(self, check_id, name, node=None, host='localhost',
|
||||
script=None, interval=None, ttl=None, notes=None, tcp=None, http=None, timeout=None, service_id=None):
|
||||
|
||||
Reference in New Issue
Block a user