Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[patch] Handle upgrade when instance does not exist #1415

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Conversation

durera
Copy link
Contributor

@durera durera commented Dec 17, 2024

Resolves issue where we cannot queue an upgrade for a MAS instance that is not yet installed

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 2b862b7 into master Dec 17, 2024
11 checks passed
@durera durera deleted the maschannel branch December 17, 2024 17:20
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