mas-cli 11.8.1__py3-none-any.whl → 11.9.1__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__ = "11.8.1" # Python module compatible semver
11
+ __version__ = "11.9.1" # Python module compatible semver
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 = "11.8.1"
120
+ self.version = "11.9.1"
121
121
  self.h1count = 0
122
122
  self.h2count = 0
123
123
 
mas/cli/install/app.py CHANGED
@@ -625,8 +625,8 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
625
625
  self.configCP4D()
626
626
  self.promptForString("COS Provider [ibm/ocs]", "cos_type")
627
627
  if self.getParam("cos_type") == "ibm":
628
- self.promptForString("IBM Cloud API Key", "ibmcloud_apikey", isPassword=True)
629
- self.promptForString("IBM Cloud Resource Group", "ibmcos_resourcegroup")
628
+ self.promptForString("IBM Cloud API Key", "cos_apikey", isPassword=True)
629
+ self.promptForString("IBM Cloud Resource Group", "cos_resourcegroup")
630
630
 
631
631
  @logMethodCall
632
632
  def chooseInstallFlavour(self) -> None:
@@ -774,7 +774,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
774
774
  elif key == "additional_configs":
775
775
  self.localConfigDir = value
776
776
  # If there is a file named mongodb-system.yaml we will use this as a BYO MongoDB datasource
777
- if path.exists(path.join(self.localConfigDir, "mongodb-system.yaml")):
777
+ if self.localConfigDir is not None and path.exists(path.join(self.localConfigDir, "mongodb-system.yaml")):
778
778
  self.setParam("mongodb_action", "byo")
779
779
  self.setParam("sls_mongodb_cfg_file", "/workspace/additional-configs/mongodb-system.yaml")
780
780
 
@@ -317,8 +317,10 @@ class installArgBuilderMixin():
317
317
  # -----------------------------------------------------------------------------
318
318
  if self.getParam('cos_type') != "":
319
319
  command += f" --cos \"{self.getParam('cos_type')}\""
320
- if self.getParam('ibmcos_resourcegroup') != "":
320
+ if self.getParam('cos_resourcegroup') != "":
321
321
  command += f" --cos-resourcegroup \"{self.getParam('cos_resourcegroup')}\""
322
+ if self.getParam('cos_apikey') != "":
323
+ command += f" --cos-apikey \"{self.getParam('cos_apikey')}\""
322
324
  command += newline
323
325
 
324
326
  # Turbonomic Integration
@@ -917,10 +917,16 @@ cosArgGroup.add_argument(
917
917
  )
918
918
  cosArgGroup.add_argument(
919
919
  "--cos-resourcegroup",
920
- dest="ibmcos_resourcegroup",
920
+ dest="cos_resourcegroup",
921
921
  required=False,
922
922
  help="When using IBM COS, set the resource group where the instance will run"
923
923
  )
924
+ cosArgGroup.add_argument(
925
+ "--cos-apikey",
926
+ dest="cos_apikey",
927
+ required=False,
928
+ help="When using IBM COS, set COS priviledged apikey for IBM Cloud"
929
+ )
924
930
 
925
931
  # Turbonomic Integration
926
932
  # -----------------------------------------------------------------------------
mas/cli/install/params.py CHANGED
@@ -113,7 +113,8 @@ optionalParams = [
113
113
  "eventstreams_instance_location",
114
114
  # COS
115
115
  "cos_type",
116
- "ibmcos_resourcegroup",
116
+ "cos_resourcegroup",
117
+ "cos_apikey",
117
118
  # ECK
118
119
  "eck_action",
119
120
  "eck_enable_logstash",
@@ -274,8 +274,8 @@ class InstallSummarizerMixin():
274
274
  self.printH2("Cloud Object Storage")
275
275
  if self.getParam("cos_type") != "":
276
276
  self.printParamSummary("Type", "cos_type")
277
- if self.getParam("ibmcos_resourcegroup") != "":
278
- self.printParamSummary("Resource Group", "ibmcos_resourcegroup")
277
+ if self.getParam("cos_resourcegroup") != "":
278
+ self.printParamSummary("Resource Group", "cos_resourcegroup")
279
279
  else:
280
280
  self.printSummary("Type", "None")
281
281