aboutsummaryrefslogtreecommitdiffstats
path: root/src/orchestrator/pkg/appcontext
diff options
context:
space:
mode:
authorIgor D.C <igor.duarte.cardoso@intel.com>2020-08-31 23:00:46 +0000
committerIgor D.C <igor.duarte.cardoso@intel.com>2020-09-24 21:41:35 +0000
commit76cf5a8195d7d7c042eda9cefde2fdf77875fd0a (patch)
tree4a81f57bc7f219c5ccf9eed257946e629f4369e2 /src/orchestrator/pkg/appcontext
parent564929b805c014f5e7ea16b5839ebb621b8c8a57 (diff)
Let instructions exist under /subresource level
Instructions (order/dependency) can now belong to an app, a resource or a subresource. Issue-ID: MULTICLOUD-1143 Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com> Change-Id: Iee55c2bbb569de242e66f5a5456ac52025a00f0e
Diffstat (limited to 'src/orchestrator/pkg/appcontext')
-rw-r--r--src/orchestrator/pkg/appcontext/appcontext.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/orchestrator/pkg/appcontext/appcontext.go b/src/orchestrator/pkg/appcontext/appcontext.go
index 5d757940..d77672db 100644
--- a/src/orchestrator/pkg/appcontext/appcontext.go
+++ b/src/orchestrator/pkg/appcontext/appcontext.go
@@ -419,7 +419,7 @@ func (ac *AppContext) AddInstruction(handle interface{}, level string, insttype
if !(insttype == "order" || insttype == "dependency") {
return nil, pkgerrors.Errorf("Not a valid app context instruction type")
}
- if !(level == "app" || level == "resource") {
+ if !(level == "app" || level == "resource" || level == "subresource") {
return nil, pkgerrors.Errorf("Not a valid app context instruction level")
}
h, err := ac.rtc.RtcAddInstruction(handle, level, insttype, value)