mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-09-13 12:43:17 +00:00
11
This commit is contained in:
@@ -436,7 +436,6 @@ public class Warehouse
|
|||||||
|
|
||||||
var location = path.TrimStart('/').Split('/');
|
var location = path.TrimStart('/').Split('/');
|
||||||
|
|
||||||
IResource parent = null;
|
|
||||||
IStore store = null;
|
IStore store = null;
|
||||||
|
|
||||||
var instanceName = location.Last();
|
var instanceName = location.Last();
|
||||||
@@ -446,7 +445,7 @@ public class Warehouse
|
|||||||
if (!(resource is IStore))
|
if (!(resource is IStore))
|
||||||
throw new Exception("Resource is not a store, root level path is not allowed.");
|
throw new Exception("Resource is not a store, root level path is not allowed.");
|
||||||
|
|
||||||
|
store = (IStore)resource;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (location.Length == 1 &&
|
if (location.Length == 1 &&
|
||||||
@@ -485,8 +484,9 @@ public class Warehouse
|
|||||||
else
|
else
|
||||||
resource.Instance.SetAttributes(Map<string, object>.FromObject(attributes));
|
resource.Instance.SetAttributes(Map<string, object>.FromObject(attributes));
|
||||||
|
|
||||||
if (manager != null)
|
|
||||||
resource.Instance.Managers.Add(manager);
|
//if (manager != null)
|
||||||
|
// resource.Instance.Managers.Add(manager);
|
||||||
|
|
||||||
//if (store == parent)
|
//if (store == parent)
|
||||||
// parent = null;
|
// parent = null;
|
||||||
|
Reference in New Issue
Block a user