Fix PATH issue
This commit is contained in:
parent
2e6826a414
commit
789bd294c3
4
main.py
4
main.py
@ -15,7 +15,7 @@ import subprocess
|
||||
gluster_host = os.environ["GLUSTER_HOST"]
|
||||
gluster_volume = os.environ["GLUSTER_VOLUME"]
|
||||
|
||||
csi_sock_full_path = os.environ.get("CSI_PATH", "/csi/csi.sock")
|
||||
csi_sock_full_path = os.environ.get("CSI_PATH", "/csi/") + "csi.sock"
|
||||
|
||||
|
||||
def unmount(path):
|
||||
@ -33,6 +33,8 @@ def mount(volume, path):
|
||||
# Might be a stale mount, unmount and try again
|
||||
if p.returncode == 32:
|
||||
return True
|
||||
|
||||
print("Mounting failed with return code:", p.returncode)
|
||||
return p
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user