Skip to content

Commit

Permalink
fix spdk rpc import path
Browse files Browse the repository at this point in the history
Signed-off-by: Sandy Kaur <sandy.kaur@ibm.com>
  • Loading branch information
sskaur committed Mar 16, 2023
1 parent 299753e commit 9088e58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions control/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ def _start_spdk(self):

# Get path and import SPDK's RPC modules
spdk_path = self.config.get("spdk", "spdk_path")
sys.path.append(spdk_path)
sys.path.append(os.path.join(spdk_path, "spdk/python"))
self.logger.info(f"SPDK PATH: {spdk_path}")
import spdk.scripts.rpc as spdk_rpc
import spdk.rpc as spdk_rpc
self.spdk_rpc = spdk_rpc

# Start target
Expand Down

0 comments on commit 9088e58

Please sign in to comment.