mas-cli 13.6.0__py3-none-any.whl → 13.7.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/update/app.py CHANGED
@@ -112,6 +112,13 @@ class UpdateApp(BaseApp):
112
112
  else:
113
113
  h.stop_and_persist(symbol=self.successIcon, text="IBM Watson Discovery is not installed")
114
114
 
115
+ with Halo(text='Checking for IBM Watson Openscale', spinner=self.spinner) as h:
116
+ if self.isWatsonOpenscaleInstalled():
117
+ h.stop_and_persist(symbol=self.failureIcon, text="IBM Watson Openscale is installed")
118
+ self.fatalError("Watson Openscale is currently installed in the instance of Cloud Pak for Data that is managed by the MAS CLI (in the ibm-cpd namespace), this is no longer supported and the update can not proceed as a result. Please contact IBM support for assistance")
119
+ else:
120
+ h.stop_and_persist(symbol=self.successIcon, text="IBM Watson Openscale is not installed")
121
+
115
122
  with Halo(text='Checking for IBM Certificate-Manager', spinner=self.spinner) as h:
116
123
  if self.isIBMCertManagerInstalled():
117
124
  h.stop_and_persist(symbol=self.successIcon, text="IBM Certificate-Manager will be replaced by Red Hat Certificate-Manager")
@@ -260,6 +267,17 @@ class UpdateApp(BaseApp):
260
267
  # Watson Discovery has never been installed on this cluster
261
268
  return False
262
269
 
270
+ def isWatsonOpenscaleInstalled(self) -> bool:
271
+ try:
272
+ wosAPI = self.dynamicClient.resources.get(api_version="wos.cpd.ibm.com/v1", kind="WOService")
273
+ wos = wosAPI.get(namespace="ibm-cpd").to_dict()['items']
274
+ if len(wos) > 0:
275
+ return True
276
+ return False
277
+ except (ResourceNotFoundError, NotFoundError):
278
+ # Watson Openscale has never been installed on this cluster
279
+ return False
280
+
263
281
  def isIBMCertManagerInstalled(self) -> bool:
264
282
  """
265
283
  Check whether the deprecated IBM Certificate-Manager is installed, if it is then we will
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: mas-cli
3
- Version: 13.6.0
3
+ Version: 13.7.0
4
4
  Summary: Python Admin CLI for Maximo Application Suite
5
5
  Home-page: https://github.com/ibm-mas/cli
6
6
  Author: David Parker
@@ -1,15 +1,15 @@
1
- mas/cli/__init__.py,sha256=_yBCZnxbqwPDcZqA5YAkdBUq7HR0aeGRBqHmRhyXeyg,526
2
- mas/cli/cli.py,sha256=ZnKUnMjPQMMZ20FN8fAKhZKr7L83pn3yvLNGA1FWSbk,18174
1
+ mas/cli/__init__.py,sha256=lDFp7DkxN88dVfqfnz8wLnbNySkxF93t_hSVbHdKPm0,526
2
+ mas/cli/cli.py,sha256=oq3vhSjn_3VMmRQi5KHiDC6Cnen6q8b-L39ttmVizMw,18174
3
3
  mas/cli/displayMixins.py,sha256=e3lAx1DIOwsriDcNI0M2JyP1jeLOZKvId6sPrvWLyqs,5984
4
4
  mas/cli/gencfg.py,sha256=p38Ss_ooiNHOZTJT8l0YxDaEaPwD4ZXgxEbW-S9YLNY,3311
5
5
  mas/cli/validators.py,sha256=vi1pFA8QtqMhqtGk1NlkkNDUrlFCi53kS5wJqFGDgOU,5108
6
6
  mas/cli/install/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
7
- mas/cli/install/app.py,sha256=TnK5TfjmnbsV-TtO2Maho2VZ6QEL-AsyrJbhwHAA4Us,60044
8
- mas/cli/install/argBuilder.py,sha256=17eBV2Ub5lCiPtrLk2_V-XHxykI-mQ-mTLR41WIqRgI,25007
9
- mas/cli/install/argParser.py,sha256=ZD5RrT78qrSg4pTAHI-uDIBtF761hMYPdm_1KsmwAZU,35731
7
+ mas/cli/install/app.py,sha256=6Iy04SnvEAS5FjapWcaCUXKznMxbNhCA0qm2KTJWOB4,59925
8
+ mas/cli/install/argBuilder.py,sha256=D_j_VjjEoI82FlexLGf2s2Ccegdnd4v4NFGzyCeNnws,24885
9
+ mas/cli/install/argParser.py,sha256=T9CrHgcTI8oMi1_Hj8tkeCxjI7aMEbpoofp836R7Od8,35504
10
10
  mas/cli/install/catalogs.py,sha256=zYzcui4ZT9Zqg4F5JUbQpjfzyzfwrIElCA_G7LpQ59g,751
11
- mas/cli/install/params.py,sha256=NFAPFn3zF59WnJIR7Ou1wNU8fm99I4SdIawlhoTQ1JY,5057
12
- mas/cli/install/summarizer.py,sha256=3BAp85go8jnAUyM0jSEa5ujmOvD5NOYOlzxlJQC2HLQ,21662
11
+ mas/cli/install/params.py,sha256=G5oJAwvaUeH8P8snyTP2nQEpH8WrUz3kHlYromAtTRc,5028
12
+ mas/cli/install/summarizer.py,sha256=PaWyEEJLMjTV8e-3xlPpTpir9IlnG9x2JQyM1pJM8-k,21527
13
13
  mas/cli/install/settings/__init__.py,sha256=RdyBSh-rM0wkuvILVzJ1gxjOtLuQ1mF6QbEL0MyiKIY,1034
14
14
  mas/cli/install/settings/additionalConfigs.py,sha256=u9DTwGZkPLIGfbNrz6yXsBi39EZgk2bwJuDUrNm_Nio,10008
15
15
  mas/cli/install/settings/db2Settings.py,sha256=YlMosXmxj8L71U_pcg0M9o38Xw2W1fOK8rdj0hPgpCA,13003
@@ -17,7 +17,7 @@ mas/cli/install/settings/kafkaSettings.py,sha256=oJxFhWQkqPi7Do53tu4oxskGbEL4hro
17
17
  mas/cli/install/settings/manageSettings.py,sha256=rBBq3r9AaDS5fLeKbItgLBnsguuZwyNKo80oYBBEB-0,16241
18
18
  mas/cli/install/settings/mongodbSettings.py,sha256=UVt8vMLNpgyewlcymSystIhICnHsd0uoM9qpgezVjGg,2567
19
19
  mas/cli/install/settings/turbonomicSettings.py,sha256=ul4eWf53b1NCzJTFsEPX6DWM23YUlWILYBygplqXYlU,1631
20
- mas/cli/templates/ibm-mas-tekton.yaml,sha256=Z_Dzh9AiB61SlruFcptSNhH1sE8QPctcM5WawIfYfDM,833179
20
+ mas/cli/templates/ibm-mas-tekton.yaml,sha256=c_RtM24235It_vCPW6BZYvVcX3VCqHMvtth-IrWRx-4,828086
21
21
  mas/cli/templates/jdbccfg.yml.j2,sha256=cANbwkUkKEPQp-P3_BB_Llbt94457Ciagah2hOdySIM,1644
22
22
  mas/cli/templates/suite_mongocfg.yml.j2,sha256=WrgJUfGyvfaRIHjY5VR_zLZ5irTpV5khKNq76ejIxKU,1606
23
23
  mas/cli/templates/pod-templates/best-effort/ibm-data-dictionary-assetdatadictionary.yml,sha256=8VG_FDFcEjWNaAOZTcS58Pe0tWOXC10SJLloNqzEMC8,757
@@ -94,13 +94,13 @@ mas/cli/uninstall/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc
94
94
  mas/cli/uninstall/app.py,sha256=uPJy3z-1Yt66MSFdZz1Qh8MjA97ZrQmjSgTx-Gqua9I,10047
95
95
  mas/cli/uninstall/argParser.py,sha256=VVG4myUvFOtg98L6HAzpgGg7s5c-vub_UMZPGuNQko4,3452
96
96
  mas/cli/update/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
97
- mas/cli/update/app.py,sha256=WdUpj9rRtVy_ssYK2h9fkTuPX_4oZoII_xQgOH2gc-E,37688
97
+ mas/cli/update/app.py,sha256=MZ7sv5sL5L5e9lXjpWbTouz9ZtvwoWfXiJbieHSwCrU,38812
98
98
  mas/cli/update/argParser.py,sha256=oOIXzB_rsI2p3og_5X5SFt_g7LURyEdLxZeiGCKq1nU,4711
99
99
  mas/cli/upgrade/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
100
100
  mas/cli/upgrade/app.py,sha256=EuEZayc0nw9kA6Hz8M9Mv7uk0hgmspJSZCYhNEfCECk,6428
101
101
  mas/cli/upgrade/argParser.py,sha256=pqzNDSHy6l13JunHWQLyOI-NFnDGDoVJ_HM07FLYJSc,2033
102
- mas_cli-13.6.0.data/scripts/mas-cli,sha256=BbibIX0psLEOZdcNaFcO4mJvStD0pKLAe-p-NwVTrBs,3439
103
- mas_cli-13.6.0.dist-info/METADATA,sha256=Si7y73IofOsQ0z5HWftqKUBWxCN7kbmcLTu1zmmEh5U,2258
104
- mas_cli-13.6.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
105
- mas_cli-13.6.0.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
106
- mas_cli-13.6.0.dist-info/RECORD,,
102
+ mas_cli-13.7.0.data/scripts/mas-cli,sha256=BbibIX0psLEOZdcNaFcO4mJvStD0pKLAe-p-NwVTrBs,3439
103
+ mas_cli-13.7.0.dist-info/METADATA,sha256=FgcutiwRxzwW8FhtU3WFCmp5_6bL55CFtgxI7gYmCr8,2258
104
+ mas_cli-13.7.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
105
+ mas_cli-13.7.0.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
106
+ mas_cli-13.7.0.dist-info/RECORD,,