Skip to content

Commit

Permalink
make client.py arm() option arg default to None for backward compatib…
Browse files Browse the repository at this point in the history
…ility with HA
  • Loading branch information
rwa committed Jan 10, 2018
1 parent 3920151 commit 8103203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion concord232/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def list_partitions(self):
except TypeError:
return r.json()['partitions']

def arm(self, level, option):
def arm(self, level, option = None):
r = self._session.get(
self._url + '/command',
params={'cmd': 'arm',
Expand Down
4 changes: 2 additions & 2 deletions concord232_client
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def do_list_partitions(clnt, args):
pprint.pprint(part)


def do_arm(clnt, level, option):
def do_arm(clnt, level, option = None):
clnt.arm(level, option)

def do_disarm(clnt, args):
Expand Down Expand Up @@ -117,7 +117,7 @@ def main():
do_arm(clnt, level, option)
else:
cmd, level = args.command.split('-')
do_arm(clnt, level, None)
do_arm(clnt, level)
elif args.command == 'disarm':
do_disarm(clnt, args)
elif args.command == 'keys':
Expand Down

0 comments on commit 8103203

Please sign in to comment.