diff options
author | 2020-09-25 02:15:45 +0000 | |
---|---|---|
committer | 2020-09-25 02:15:45 +0000 | |
commit | ab8142dfc0f54bfc140e240fe558ac5be8d60ea5 (patch) | |
tree | 6a57f02a532202576d156eb7b6a388b1ce3e2542 | |
parent | a589ba5e30c4cb2ce7999a60276689f9ef683447 (diff) | |
parent | 76cf5a8195d7d7c042eda9cefde2fdf77875fd0a (diff) |
Merge "Let instructions exist under /subresource level"
-rw-r--r-- | src/orchestrator/pkg/appcontext/appcontext.go | 2 |
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) |