Skip to content

Commit 025b9f7

Browse files
Syeda Shagufta Naazchombourger
Syeda Shagufta Naaz
authored andcommitted
fix(client): rename cmd for nbd-client to cmd_nbd
Signed-off-by: Syeda Shagufta Naaz <[email protected]>
1 parent 8ef3493 commit 025b9f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mtda/client.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ def pastebin_endpoint(self):
101101
return self._agent.pastebin_endpoint()
102102

103103
def storage_network(self, remote):
104-
cmd = '/usr/sbin/nbd-client'
105-
if os.path.exists(cmd) is False:
106-
raise RuntimeError(f'{cmd} not found')
104+
cmd_nbd = '/usr/sbin/nbd-client'
105+
if os.path.exists(cmd_nbd) is False:
106+
raise RuntimeError(f'{cmd_nbd} not found')
107107

108108
rdev = self._impl.storage_network()
109109
if rdev is None:
@@ -112,7 +112,7 @@ def storage_network(self, remote):
112112
cmd = ['sudo', '/usr/sbin/modprobe', 'nbd']
113113
subprocess.check_call(cmd)
114114

115-
cmd = ['sudo', cmd, '-N', 'mtda-storage', remote]
115+
cmd = ['sudo', cmd_nbd, '-N', 'mtda-storage', remote]
116116
subprocess.check_call(cmd)
117117

118118
def storage_open(self):

0 commit comments

Comments
 (0)