Skip to content

Commit 24faa26

Browse files
fix: set No Change as default login option when creating instance from Windows-based VM
Signed-off-by: Lizzy Liang <lizzy.liang@bigstack.co>
1 parent 8c4fe16 commit 24faa26

File tree

1 file changed

+5
-3
lines changed
  • src/pages/compute/containers/Instance/actions/StepCreate/SystemStep

1 file changed

+5
-3
lines changed

src/pages/compute/containers/Instance/actions/StepCreate/SystemStep/index.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,11 @@ export class SystemStep extends Base {
145145
const { servergroup } = this.locationParams;
146146
const { context = {} } = this.props;
147147
const data = {
148-
loginType:
149-
context.loginType ||
150-
(this.isWindowsImage ? this.loginTypes[1] : this.loginTypes[0]),
148+
/**
149+
* If context.loginType exists, use it;
150+
* Otherwise, default to "No Change"
151+
*/
152+
loginType: context.loginType || this.loginTypes[0],
151153
more: false,
152154
physicalNodeType: physicalNodeTypes[0],
153155
userData: '',

0 commit comments

Comments
 (0)