diff --git a/test_part1.sh b/bin/test_part1.sh similarity index 100% rename from test_part1.sh rename to bin/test_part1.sh diff --git a/main.py b/main.py index 2dfad83..e7f3f6d 100644 --- a/main.py +++ b/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