summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/lib/examples/python/changes.py
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/lib/examples/python/changes.py')
-rw-r--r--xlators/features/changelog/lib/examples/python/changes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/changelog/lib/examples/python/changes.py b/xlators/features/changelog/lib/examples/python/changes.py
index d21db8eab2e..221df642a36 100644
--- a/xlators/features/changelog/lib/examples/python/changes.py
+++ b/xlators/features/changelog/lib/examples/python/changes.py
@@ -10,6 +10,7 @@ cl = libgfchangelog.Changes()
def get_changes(brick, scratch_dir, log_file, log_level, interval):
change_list = []
try:
+ cl.cl_init()
cl.cl_register(brick, scratch_dir, log_file, log_level)
while True:
cl.cl_scan()
@@ -25,7 +26,7 @@ def get_changes(brick, scratch_dir, log_file, log_level, interval):
print ex
if __name__ == '__main__':
- if len(sys.argv) != 5:
+ if len(sys.argv) != 6:
print("usage: %s <brick> <scratch-dir> <log-file> <fetch-interval>"
% (sys.argv[0]))
sys.exit(1)