summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/daq/flumotion-rrd/flumotion-rrd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daq/flumotion-rrd/flumotion-rrd.py b/src/daq/flumotion-rrd/flumotion-rrd.py
index 54a0c97..a661e31 100755
--- a/src/daq/flumotion-rrd/flumotion-rrd.py
+++ b/src/daq/flumotion-rrd/flumotion-rrd.py
@@ -32,11 +32,9 @@
#
from twisted.internet import protocol, reactor
-from twisted.python import log
from socket import error as socket_error
import simplejson as json
import datetime
-import argparse
_MAX_PACKET_SIZE = 8192 # in bytes
@@ -126,6 +124,8 @@ class FlumotionRRD():
if __name__ == '__main__':
+ import argparse
+
parser = argparse.ArgumentParser(description='SFive Flumotion RRD Importer')
parser.add_argument('--socket', '-s', dest='socket', required=True,
help='the path to the data socket of the local SFive hub')