mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Revert "fix for the Bug 7836 - Add secondary storage- MS fails to check invalid path specified"
This reverts commit 53b2ba278d597cd653774e0f89273ddfc9cfdedb.
This commit is contained in:
parent
db981484ab
commit
e4d9216222
@ -104,6 +104,9 @@ public class SecondaryStorageDiscoverer extends DiscovererBase implements Discov
|
||||
|
||||
protected Map<? extends ServerResource, Map<String, String>> createNfsSecondaryStorageResource(long dcId, Long podId, URI uri) {
|
||||
|
||||
if (_useServiceVM) {
|
||||
return createDummySecondaryStorageResource(dcId, podId, uri);
|
||||
}
|
||||
String mountStr = NfsUtils.uri2Mount(uri);
|
||||
|
||||
Script script = new Script(true, "mount", _timeout, s_logger);
|
||||
@ -132,10 +135,6 @@ public class SecondaryStorageDiscoverer extends DiscovererBase implements Discov
|
||||
script.execute();
|
||||
|
||||
file.delete();
|
||||
|
||||
if (_useServiceVM) {
|
||||
return createDummySecondaryStorageResource(dcId, podId, uri);
|
||||
}
|
||||
|
||||
Map<NfsSecondaryStorageResource, Map<String, String>> srs = new HashMap<NfsSecondaryStorageResource, Map<String, String>>();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user