]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commit
iscsi.py: fix to defer the import of rtslib_fb 95/head
authorPaul Cuzner <pcuzner@redhat.com>
Tue, 8 Aug 2017 21:48:55 +0000 (09:48 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Tue, 8 Aug 2017 21:48:55 +0000 (09:48 +1200)
commit8be9cac0a93bd78a665b7268e77e42243733535e
tree01cbd46225a235d05d7afa0f6fca2f6a20404f20
parent14e30f30aebe969901213b0037c32ea94cd87f33
iscsi.py: fix to defer the import of rtslib_fb

the goal of the parent module cephmetrics is to be generic across the
different ceph roles. By deferring the import of rtslib to the instantiation
of the first (and only!) ISCSIGateway object cephmetrics can import this
iscsi module without a problem regardless of the runtime environment.
collectors/iscsi.py