Skip to content

Commit 39e1e1a

Browse files
committed
Use None for argv
Fixed bug where the command line options to connmon didn't work due to incorrect argument signature for the main() function. Fixes: #7 Change-Id: I224a2f42b12711151168eb4f3c26e068a23754ca
1 parent ab11279 commit 39e1e1a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

sqlalchemy_collectd/connmon/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from ..server import receiver
88

99

10-
def main(argv=[]):
10+
def main(argv=None):
1111
parser = argparse.ArgumentParser()
1212

1313
parser.add_argument(

unreleased_changes/7.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. change::
2+
:tags: bug
3+
:tickets: 7
4+
5+
Fixed bug where the command line options to connmon didn't work due to
6+
incorrect argument signature for the main() function.

0 commit comments

Comments
 (0)