mas-cli 15.1.5__py3-none-any.whl → 15.1.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mas-cli might be problematic. Click here for more details.

mas/cli/__init__.py CHANGED
@@ -8,4 +8,4 @@
8
8
  #
9
9
  # *****************************************************************************
10
10
 
11
- __version__ = "15.1.5" # Python module compatible semver
11
+ __version__ = "15.1.7" # Python module compatible semver
@@ -661,6 +661,8 @@ class AiServiceInstallApp(BaseApp, aiServiceInstallArgBuilderMixin, aiServiceIns
661
661
  self.promptForString("RSL url", "rsl_url")
662
662
  self.promptForString("ORG Id of RSL", "rsl_org_id")
663
663
  self.promptForString("Token for RSL", "rsl_token", isPassword=True)
664
+ if self.yesOrNo("Does the RSL API use a self-signed certificate?"):
665
+ self.promptForString("RSL CA certificate (PEM format)", "rsl_ca_crt")
664
666
 
665
667
  # These are all candidates to centralise in a new mixin used by both install and aiservice-install
666
668
 
@@ -171,6 +171,8 @@ class aiServiceInstallArgBuilderMixin():
171
171
  command += f" --rsl-org-id \"{self.getParam('rsl_org_id')}\"{newline}"
172
172
  if self.getParam('rsl_token') != "":
173
173
  command += f" --rsl-token \"{self.getParam('rsl_token')}\"{newline}"
174
+ if self.getParam('rsl_ca_crt') != "":
175
+ command += f" --rsl-ca-crt \"{self.getParam('rsl_ca_crt')}\"{newline}"
174
176
 
175
177
  command += " --accept-license --no-confirm"
176
178
  return command
@@ -391,6 +391,12 @@ aibrokerArgGroup.add_argument(
391
391
  required=False,
392
392
  help="token for rsl"
393
393
  )
394
+ aibrokerArgGroup.add_argument(
395
+ "--rsl-ca-crt",
396
+ dest="rsl_ca_crt",
397
+ required=False,
398
+ help="CA certificate for RSL API (PEM format, optional, only if using self-signed certs)"
399
+ )
394
400
  aibrokerArgGroup.add_argument(
395
401
  "--environment-type",
396
402
  dest="environment_type",
@@ -95,6 +95,6 @@ optionalParams = [
95
95
  "rsl_url",
96
96
  "rsl_org_id",
97
97
  "rsl_token",
98
-
98
+ "rsl_ca_crt",
99
99
  "environment_type",
100
100
  ]
mas/cli/cli.py CHANGED
@@ -117,7 +117,7 @@ class BaseApp(PrintMixin, PromptMixin):
117
117
  logging.getLogger('asyncio').setLevel(logging.INFO)
118
118
 
119
119
  # Supports extended semver, unlike mas.cli.__version__
120
- self.version = "15.1.5"
120
+ self.version = "15.1.7"
121
121
  self.h1count = 0
122
122
  self.h2count = 0
123
123