summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2020-09-25 02:15:45 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-25 02:15:45 +0000
commitab8142dfc0f54bfc140e240fe558ac5be8d60ea5 (patch)
tree6a57f02a532202576d156eb7b6a388b1ce3e2542 /src
parenta589ba5e30c4cb2ce7999a60276689f9ef683447 (diff)
parent76cf5a8195d7d7c042eda9cefde2fdf77875fd0a (diff)
Merge "Let instructions exist under /subresource level"
Diffstat (limited to 'src')
-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)