-
Notifications
You must be signed in to change notification settings - Fork 11
Split ibm cloud credentials from ibm classic infra credentials #23
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
Split ibm cloud credentials from ibm classic infra credentials #23
Conversation
| if %i[classic_user classic_key].any? { |opt| attrs.key?(opt) } | ||
| attrs[:userid] = attrs.delete(:classic_user) if attrs.key?(:classic_user) | ||
| attrs[:password] = attrs.delete(:classic_key) if attrs.key?(:classic_key) | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this just goes away if classic user/key are moved to the other class as auth_key is required, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure - @agrare ?
| :isRequired => true, | ||
| :validate => [{:type => 'required'}], | ||
| }, | ||
| ].freeze |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed these to userid and password so we don't need to define params_to_attributes here.
a8fac8d to
6f86e00
Compare
6f86e00 to
a8356c6
Compare
|
Makes sense to me, @putmanoj can you confirm this will work for opentofu-runner / ibm_cloud provider |
|
Only comment I have here is I think it should it be "IBM Cloud Classic Infrastructure" vs "IBM Classic Infrastructure"? (it's this way in various strings, class names, factory names etc, so I think it would have to change everywhere) |
My goal was to avoid confusing people by having IBM Cloud and IBM Cloud Classic Infrastructure in the select list. I saw Classic Infrastructure all over the place here and figured maybe we could use it: https://cloud.ibm.com/docs/account?topic=account-classic_keys. I'm good with whatever users would know the names to be. |
|
Checked commits jrafanie/manageiq-providers-embedded_terraform@a8356c6~...2827fc2 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint |
Ok, renamed to IBM Cloud Classic Infrastructure. The screenshots are updated. |
|
Ready to go |
I think this simplifies the required field logic. We'll need to make sure connecting from within the runner works but this is the start of enabling that work.