strip trailing slash in kibana_url only when defined

This commit is contained in:
Justin Ibarra
2020-12-16 12:59:30 -09:00
committed by GitHub
parent 86fe2d6279
commit ff76571366
+1 -1
View File
@@ -27,7 +27,7 @@ class Kibana(object):
self.session.verify = verify
self.cloud_id = cloud_id
self.kibana_url = kibana_url.rstrip('/')
self.kibana_url = kibana_url.rstrip('/') if kibana_url else None
self.elastic_url = None
self.space = space if space and space.lower() != 'default' else None
self.status = None