Skip to content

Commit

Permalink
mqtt-rpc-client: fix default value of --args option (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
sikmir authored Jan 25, 2024
1 parent 5ff62e3 commit ab40b9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/mqtt-rpc-client
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
# pylint: disable=invalid-name

import argparse
import json
Expand All @@ -24,7 +25,7 @@ def main():
parser.add_argument("-d", "--driver", dest="driver", type=str, help="Driver name", required=True)
parser.add_argument("-s", "--service", dest="service", type=str, help="Service name", required=True)
parser.add_argument("-m", "--method", dest="method", type=str, help="Method name", required=True)
parser.add_argument("-a", "--args", dest="args", type=json.loads, help="Method arguments")
parser.add_argument("-a", "--args", dest="args", type=json.loads, help="Method arguments", default={})
parser.add_argument("-t", "--timeout", dest="timeout", type=int, help="Timeout in seconds", default=10)
args = parser.parse_args()

Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
python-mqttrpc (1.2.3) stable; urgency=medium

* mqtt-rpc-client: fix default value of --args option

-- Nikolay Korotkiy <nikolay.korotkiy@wirenboard.com> Wed, 24 Jan 2024 16:00:00 +0400

python-mqttrpc (1.2.2) stable; urgency=medium

* Fix PKG-INFO
Expand Down

0 comments on commit ab40b9e

Please sign in to comment.