From b218789065f9017dd356f03975997a5f82bebae0 Mon Sep 17 00:00:00 2001 From: Alexander VanTol Date: Wed, 3 Jul 2019 14:16:40 -0500 Subject: [PATCH] handle case where namespace has a `/` on the end --- bin/migrate_acl_authz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/migrate_acl_authz.py b/bin/migrate_acl_authz.py index 34810330..c36420d8 100644 --- a/bin/migrate_acl_authz.py +++ b/bin/migrate_acl_authz.py @@ -119,7 +119,7 @@ def __init__(self, arborist_url, sheepdog_db=None): self.projects = dict() self.namespace = "" if os.getenv("AUTH_NAMESPACE"): - self.namespace = "/" + os.getenv("AUTH_NAMESPACE").lstrip("/") + self.namespace = "/" + os.getenv("AUTH_NAMESPACE").strip("/") logger.info("using namespace {}".format(self.namespace)) else: logger.info("not using any auth namespace")