Skip to content

Conversation

@durera
Copy link
Contributor

@durera durera commented Dec 17, 2024

When there is no ibm-mas subscription for the MAS instance ID provided return None, resolve this failure seen when trying to upgrade an instance that does not exist:

IBM Maximo Application Suite Admin CLI v12.1.1-pre.master
Powered by https://github.com/ibm-mas/ansible-devops/ and https://tekton.dev/
Traceback (most recent call last):
  File "/opt/app-root/bin/mas-cli", line 65, in <module>
    app.upgrade(argv[2:])
  File "/opt/app-root/lib64/python3.9/site-packages/mas/cli/upgrade/app.py", line 73, in upgrade
    current_mas_channel = getMasChannel(self.dynamicClient, instanceId)
  File "/opt/app-root/lib64/python3.9/site-packages/mas/devops/mas.py", line 154, in getMasChannel
    return masSubscription.spec.channel
AttributeError: 'NoneType' object has no attribute 'spec'

@durera durera merged commit f5e5e79 into stable Dec 17, 2024
2 checks passed
@durera durera deleted the maschannel branch December 17, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant