mas-cli 10.9.2__py3-none-any.whl → 11.0.0__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__ = "10.9.2" # Python module compatible semver
11
+ __version__ = "11.0.0" # Python module compatible semver
mas/cli/cli.py CHANGED
@@ -108,7 +108,7 @@ class BaseApp(PrintMixin, PromptMixin):
108
108
  rootLogger.setLevel(logging.DEBUG)
109
109
 
110
110
  # Supports extended semver, unlike mas.cli.__version__
111
- self.version = "10.9.2"
111
+ self.version = "11.0.0"
112
112
  self.h1count = 0
113
113
  self.h2count = 0
114
114
 
mas/cli/install/app.py CHANGED
@@ -185,6 +185,10 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
185
185
  self.printH1("Configure MongoDb")
186
186
  self.promptForString("Install namespace", "mongodb_namespace", default="mongoce")
187
187
 
188
+ def configSpecialCharacters(self):
189
+ self.printH1("Configure special characters for userID and username")
190
+ self.yesOrNo("Do you want to allow special characters for user IDs and usernames?", "mas_special_characters")
191
+
188
192
  def configCP4D(self):
189
193
  if self.getParam("mas_catalog_version") in ["v9-240625-amd64", "v9-240730-amd64", "v9-240827-amd64"]:
190
194
  logger.debug(f"Using automatic CP4D product version: {self.getParam('cpd_product_version')}")
@@ -261,6 +265,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
261
265
  self.configCATrust()
262
266
  self.configDNSAndCerts()
263
267
  self.configSSOProperties()
268
+ self.configSpecialCharacters()
264
269
  self.configGuidedTour()
265
270
 
266
271
  def configCATrust(self) -> None:
@@ -746,7 +751,9 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
746
751
  "install_arcgis",
747
752
  "mas_arcgis_channel",
748
753
  # Guided Tour
749
- "mas_enable_walkme"
754
+ "mas_enable_walkme",
755
+ # Special chars
756
+ "mas_special_characters"
750
757
  ]
751
758
 
752
759
  for key, value in vars(self.args).items():
@@ -60,6 +60,9 @@ class installArgBuilderMixin():
60
60
  command += f" --mas-workspace-id {self.getParam('mas_workspace_id')}"
61
61
  command += f" --mas-workspace-name \"{self.getParam('mas_workspace_name')}\"{newline}"
62
62
 
63
+ if self.getParam('mas_special_characters') == "true":
64
+ command += f" --allow-special-chars \"{self.getParam('mas_special_characters')}\"{newline}"
65
+
63
66
  # ECK Integration
64
67
  # -----------------------------------------------------------------------------
65
68
  if self.getParam('eck_action') == "install":
@@ -75,7 +75,16 @@ masArgGroup.add_argument(
75
75
  required=False,
76
76
  help="Subscription channel for the Core Platform"
77
77
  )
78
-
78
+ # MAS Special characters
79
+ # -----------------------------------------------------------------------------
80
+ masSpecialCharacters = installArgParser.add_argument_group("Mas Special Characters")
81
+ masSpecialCharacters.add_argument(
82
+ "--allow-special-chars",
83
+ dest="mas_special_characters",
84
+ required=False,
85
+ help="Allow special chars for users username/ID",
86
+ action="store_true"
87
+ )
79
88
  # ECK Integration
80
89
  # -----------------------------------------------------------------------------
81
90
  eckArgGroup = installArgParser.add_argument_group("ECK Integration")