Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions consulate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,14 @@ def main():
if args.api_host:
api_host = args.api_host

consul = consulate.Consul(api_host, port, args.dc,
args.token, args.api_scheme, adapter)
consul = consulate.Consul(
host=api_host,
port=port,
datacenter=args.dc,
token=args.token,
scheme=args.api_scheme,
adapter=adapter,
)

if args.command == 'acl':
ACL_ACTIONS[args.action](consul, args)
Expand Down
2 changes: 1 addition & 1 deletion consulate/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import collections


class Model(collections.Iterable):
class Model(collections.abc.Iterable):
"""A model contains an __attribute__ map that defines the name,
its type for type validation, an optional validation method, a method
used to
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import setuptools

setuptools.setup(
name='abaez.consulate',
version='1.1.0',
name='consulate',
version='1.1.2',
description='A Client library and command line application for the Consul',
maintainer='Gavin M. Roy',
maintainer_email='gavinr@aweber.com',
Expand Down