Skip to content

Commit

Permalink
Do not autoselect credentials for nutanix (stolostron#3161)
Browse files Browse the repository at this point in the history
Signed-off-by: rawagner <[email protected]>
  • Loading branch information
rawagner authored Jan 19, 2024
1 parent 55aaf24 commit d10659d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ export const setAvailableConnections = (control, secrets) => {
const perPostSection = control.groupControlData?.find(({ id }) => id === 'perPostSection')
if (
Array.isArray(control.providerId)
? !control.providerId.includes('hostinventory')
: control.providerId !== 'hostinventory'
? !control.providerId.some((provider) => ['hostinventory', 'nutanix'].includes(provider))
: !['hostinventory', 'nutanix'].includes(control.providerId)
) {
// unset default ansible secret for subscription wizard as it's not required
if (control.setActive && !control.active && !perPostSection) {
Expand Down

0 comments on commit d10659d

Please sign in to comment.