Skip to content
Browse files

Fix scaling of services in the root ns

Slices where unduely created in a "None" namespace, beacause of
the --namespace=None in the command forged by the monitor thread.
  • Loading branch information...
cvaroqui committed Jul 15, 2019
1 parent 3f162a8 commit 2b04628e33f45cad23a8b044d8414152d19f318b
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/
@@ -634,7 +634,9 @@ def service_create_scaler_slave(self, path, svc, data, instances=None):
except KeyError:
data = {path: data}
cmd = ["create", "--config=-", "--namespace=%s" % svc.namespace]
cmd = ["create", "--config=-"]
if svc.namespace:
cmd += ["--namespace=%s" % svc.namespace]
proc = self.service_command(None, cmd, stdin=json.dumps(data))
out, err = proc.communicate()
if proc.returncode != 0:

0 comments on commit 2b04628

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