Datacenter Update to Ws
This commit is contained in:
@@ -160,7 +160,7 @@ func (p *PVCSetter) TeardownAsSource(ctx context.Context, event PVCDeleteEvent)
|
||||
|
||||
// ResolveStorageName returns the live storage name for a given storageID, or "" if not found.
|
||||
func ResolveStorageName(storageID, peerID string) string {
|
||||
res := oclib.NewRequest(oclib.LibDataEnum(oclib.LIVE_STORAGE), "", peerID, []string{}, nil).LoadAll(false)
|
||||
res := oclib.NewRequest(oclib.LibDataEnum(oclib.LIVE_STORAGE), "", peerID, []string{}, nil).LoadAll(false, 0, 10000)
|
||||
if res.Err != "" {
|
||||
return ""
|
||||
}
|
||||
@@ -175,7 +175,7 @@ func ResolveStorageName(storageID, peerID string) string {
|
||||
|
||||
// loadStorageSize looks up the SizeGB for this storage in live storages.
|
||||
func (p *PVCSetter) loadStorageSize(peerID string) (string, error) {
|
||||
res := oclib.NewRequest(oclib.LibDataEnum(oclib.LIVE_STORAGE), "", peerID, []string{}, nil).LoadAll(false)
|
||||
res := oclib.NewRequest(oclib.LibDataEnum(oclib.LIVE_STORAGE), "", peerID, []string{}, nil).LoadAll(false, 0, 10000)
|
||||
if res.Err != "" {
|
||||
return "", fmt.Errorf("loadStorageSize: %s", res.Err)
|
||||
}
|
||||
@@ -199,7 +199,7 @@ func (p *PVCSetter) TeardownForExecution(ctx context.Context, localPeerID string
|
||||
"executions_id": {{Operator: dbs.EQUAL.String(), Value: p.ExecutionsID}},
|
||||
"resource_type": {{Operator: dbs.EQUAL.String(), Value: tools.LIVE_STORAGE.EnumIndex()}},
|
||||
},
|
||||
}, "", false)
|
||||
}, "", false, 0, 10000)
|
||||
|
||||
if res.Err != "" || len(res.Data) == 0 {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user