From 53be0cba35f7ab5880be30b397f2e1671611e34d Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Thu, 4 Jun 2009 11:02:19 -0500
Subject: linhes-config:  Fix auto nfs shares for none nfs servers

---
 abs/core-testing/LinHES-config/mv_misc.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/abs/core-testing/LinHES-config/mv_misc.py b/abs/core-testing/LinHES-config/mv_misc.py
index 27aeb98..c93cd71 100755
--- a/abs/core-testing/LinHES-config/mv_misc.py
+++ b/abs/core-testing/LinHES-config/mv_misc.py
@@ -75,9 +75,14 @@ def setup_nfs(systemconfig):
             nfsmap_file = download_nfsmap(ip)
             nfslist = process_nfsmap_file(nfsmap_file)
         #else treat it as a single mount point
+        else:
+            item = (systemconfig["NFSserver"] , systemconfig["NFSmount"])
+            nfslist.append(item)
     else:
-        item = (systemconfig["NFSserver"] , systemconfig["NFSmount"])
-        nfslist.append(item)
+        #if standalone or slave try to use MBE
+        if systemconfig["SystemType"] == "Frontend_only" or systemconfig["SystemType"] == "Slave_Backend":
+            item = (systemconfig["dbhost"] , data_config.DATAMOUNT)
+            nfslist.append(item)
     setup_nfs_fstab(nfslist)
     logging.info("__End of nfs\n")
 
-- 
cgit v0.12

