cf-natali commented on a change in pull request #383:
URL: https://github.com/apache/mesos/pull/383#discussion_r644249567
##########
File path: src/python/cli_new/lib/cli/config.py
##########
@@ -137,3 +211,15 @@ def plugins(self):
return self.data["plugins"]
return []
+
+ def authentication_header(self):
+ """
+ Return the BasicAuth authentication header
+ """
+ if (self.agent_principal() is not None
+ and self.agent_secret() is not None):
Review comment:
Nit: the indentation seems a bit strange?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]