mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
Check to make sure an NFS file share is mounted
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
@@ -712,9 +712,14 @@ Generic command layout:
|
||||
dhcp = False
|
||||
else:
|
||||
dhcp = True
|
||||
# print(port_list)
|
||||
if 'nfs' in args.fs_type:
|
||||
if [[ $(mount -l | grep nfs) ]]; then
|
||||
pass
|
||||
else:
|
||||
raise ValueError("No nfs share is mounted")
|
||||
else:
|
||||
exit(1)
|
||||
|
||||
# exit(1)
|
||||
ip_test = FileIOTest(args.mgr,
|
||||
args.mgr_port,
|
||||
ssid=args.ssid,
|
||||
|
||||
Reference in New Issue
Block a user