diff --git a/lib/shared/addon/components/custom-command/component.js b/lib/shared/addon/components/custom-command/component.js index ba704d818..cb74eba0c 100644 --- a/lib/shared/addon/components/custom-command/component.js +++ b/lib/shared/addon/components/custom-command/component.js @@ -7,6 +7,7 @@ import { validateHostname } from '@rancher/ember-api-store/utils/validate'; import { validateEndpoint, } from 'shared/utils/util'; import { inject as service } from '@ember/service'; import { isEmpty } from '@ember/utils'; +import { next } from '@ember/runloop'; export default Component.extend(ManageLabels, { intl: service(), @@ -101,6 +102,13 @@ export default Component.extend(ManageLabels, { const windowsCmdPostfix = ` | iex}"`; if (windowsSelected) { + next(() => { + setProperties(this, { + etcd: false, + controlplane: false, + }); + }) + out = (get(this, 'token.windowsNodeCommand') || '').replace('--isolation hyperv ', '').replace(windowsCmdPostfix, '') }