Skip to content
Permalink
Browse files

Refuse to create "dummy" service on "svcmgr create --template"

This could happen when the path is missing in the data sent to
the handler.
  • Loading branch information...
cvaroqui committed Jul 11, 2019
1 parent af40e7d commit 462ec26f961a0abf9f835e2041e0387bf30582d2
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/node.py
@@ -3038,6 +3038,7 @@ def install_service(self, path, fpath=None, template=None,
req = {
"action": "create",
"options": {
"path": path,
"namespace": namespace,
"provision": provision,
"template": template,
@@ -3102,6 +3103,8 @@ def install_service(self, path, fpath=None, template=None,
# force the new path
for path, __data in _data.items():
break
if path.endswith("svc/dummy"):
raise ex.excError("no path in deployment data")
_data = {
path: __data,
}

0 comments on commit 462ec26

Please sign in to comment.
You can’t perform that action at this time.